From 1d61e473c88568fae7ef5edebc77acd53e4126f9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Oct 2003 15:25:21 +0000 Subject: * New query `nix --query --predecessors' to print the predecessors of a Nix expression. --- src/store.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/store.hh') 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); -- cgit 1.4.1