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