1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00
nix/src/libexpr/primops/fetchGit.hh
2019-04-19 11:34:23 +02:00

22 lines
356 B
C++

#pragma once
#include "store-api.hh"
#include <regex>
namespace nix {
struct GitInfo
{
Path storePath;
std::string ref;
Hash rev{htSHA1};
std::optional<uint64_t> revCount;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::optional<std::string> ref,
std::optional<Hash> rev,
const std::string & name);
}