diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-06-05 11:37:41 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-06-30 18:22:47 +0200 |
commit | 55888633dd323c83cd1db3773d82dc954da34888 (patch) | |
tree | 426c71d523bd5ee7c9b6b06ab6cb3971b755d5ff /src/libstore/make-content-addressed.hh | |
parent | 8dca95386c9ab8b13886716ec31e1b2936a3ef10 (diff) |
makeContentAddressed: Add single path helper
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); } |