2022-03-22 20:14:58 +00:00
|
|
|
#pragma once
|
2023-04-01 03:18:41 +00:00
|
|
|
///@file
|
2022-03-22 20:14:58 +00:00
|
|
|
|
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
2023-06-05 09:37:41 +00:00
|
|
|
/** Rewrite a closure of store paths to be completely content addressed.
|
|
|
|
*/
|
2022-03-22 20:14:58 +00:00
|
|
|
std::map<StorePath, StorePath> makeContentAddressed(
|
|
|
|
Store & srcStore,
|
|
|
|
Store & dstStore,
|
2023-06-05 09:37:41 +00:00
|
|
|
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);
|
2022-03-22 20:14:58 +00:00
|
|
|
|
|
|
|
}
|