diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-07-09 23:41:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-09 23:41:22 -0400 |
commit | 028b26a77f111b8334d1ed4251a39df93b446400 (patch) | |
tree | 578757d44faeec08bc7d0a7eded4c435f18cc6b8 /src/libstore/make-content-addressed.hh | |
parent | 8d871e18225d39a4c256b5416cc275137b8769b9 (diff) | |
parent | 9fc82de49388a58240234d10893673566432f7ab (diff) |
Merge pull request #8370 from hercules-ci/fetchClosure-input-addressed
`fetchClosure`: input addressed and pure
Diffstat (limited to 'src/libstore/make-content-addressed.hh')
-rw-r--r-- | src/libstore/make-content-addressed.hh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libstore/make-content-addressed.hh b/src/libstore/make-content-addressed.hh index 2ce6ec7bc..60bb2b477 100644 --- a/src/libstore/make-content-addressed.hh +++ b/src/libstore/make-content-addressed.hh @@ -5,9 +5,20 @@ namespace nix { +/** Rewrite a closure of store paths to be completely content addressed. + */ std::map<StorePath, StorePath> makeContentAddressed( Store & srcStore, Store & dstStore, - const StorePathSet & storePaths); + const StorePathSet & rootPaths); + +/** Rewrite a closure of a store path to be completely content addressed. + * + * This is a convenience function for the case where you only have one root path. + */ +StorePath makeContentAddressed( + Store & srcStore, + Store & dstStore, + const StorePath & rootPath); } |