diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-11-09 15:57:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 15:57:39 +0100 |
commit | 67179472dfe30c97af9a5aeed0190c0e765936cf (patch) | |
tree | 8062dace9a6fec19a6095a13fc844ff8601313e4 /src/libstore/store-api.hh | |
parent | 884ef336c4bf838d853056d8abb926a71786afa6 (diff) | |
parent | 0b005bc9d67b3f621bc78e5ecb2cd834172d5563 (diff) |
Merge pull request #5494 from tweag/balsoft/allow-references-in-addPath
Allow references in addPath
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 8472e726a..b7899dd44 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -452,7 +452,7 @@ public: libutil/archive.hh). */ virtual StorePath addToStore(const string & name, const Path & srcPath, FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, - PathFilter & filter = defaultPathFilter, RepairFlag repair = NoRepair); + PathFilter & filter = defaultPathFilter, RepairFlag repair = NoRepair, const StorePathSet & references = StorePathSet()); /* Copy the contents of a path to the store and register the validity the resulting path, using a constant amount of @@ -468,7 +468,8 @@ public: `dump` may be drained */ // FIXME: remove? virtual StorePath addToStoreFromDump(Source & dump, const string & name, - FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair) + FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair, + const StorePathSet & references = StorePathSet()) { unsupported("addToStoreFromDump"); } /* Like addToStore, but the contents written to the output path is |