1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Clean up exportGit argument handling

This commit is contained in:
Eelco Dolstra 2019-04-19 11:34:23 +02:00
parent 46cb15df9b
commit 6960ee929d
4 changed files with 40 additions and 30 deletions

View file

@ -10,13 +10,13 @@ struct GitInfo
{
Path storePath;
std::string ref;
std::string rev;
std::string shortRev;
Hash rev{htSHA1};
std::optional<uint64_t> revCount;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::optional<std::string> ref, std::string rev,
std::optional<std::string> ref,
std::optional<Hash> rev,
const std::string & name);
}