about summary refs log tree commit diff
path: root/src/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-10T15·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-10T15·25+0000
commit1d61e473c88568fae7ef5edebc77acd53e4126f9 (patch)
tree403c4cec6f2093cb16e95362b60ea058af714eb7 /src/store.hh
parent0abe185688aa19c9ca87c9d22e24a54b4b359969 (diff)
* New query `nix --query --predecessors' to print the predecessors of
  a Nix expression.

Diffstat (limited to 'src/store.hh')
-rw-r--r--src/store.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/store.hh b/src/store.hh
index abf874543164..7851b1e3d874 100644
--- a/src/store.hh
+++ b/src/store.hh
@@ -22,6 +22,10 @@ void copyPath(const Path & src, const Path & dst);
 void registerSuccessor(const Transaction & txn,
     const Path & srcPath, const Path & sucPath);
 
+/* Return the predecessors of the Nix expression stored at the given
+   path. */
+Paths queryPredecessors(const Path & sucPath);
+
 /* Register a substitute. */
 void registerSubstitute(const Path & srcPath, const Path & subPath);