1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-21 11:30:30 -04:00
nix/src/libexpr/primops/fetchGit.hh

23 lines
356 B
C++
Raw Normal View History

2018-11-29 13:18:36 -05:00
#pragma once
#include "store-api.hh"
#include <regex>
namespace nix {
struct GitInfo
{
Path storePath;
std::string ref;
2019-04-19 05:34:23 -04:00
Hash rev{htSHA1};
std::optional<uint64_t> revCount;
2018-11-29 13:18:36 -05:00
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
2019-04-19 05:34:23 -04:00
std::optional<std::string> ref,
std::optional<Hash> rev,
2018-11-29 13:18:36 -05:00
const std::string & name);
}