lix/src/libexpr/primops/fetchGit.hh

24 lines
380 B
C++
Raw Normal View History

2018-11-29 18:18:36 +00:00
#pragma once
#include "store-api.hh"
#include <regex>
namespace nix {
struct GitInfo
{
Path storePath;
std::string rev;
std::string shortRev;
uint64_t revCount = 0;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::experimental::optional<std::string> ref, std::string rev,
const std::string & name);
extern std::regex revRegex;
}