lix/src/libexpr/primops/fetchGit.hh
2019-04-19 11:16:14 +02:00

23 lines
369 B
C++

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