nix-super/src/libexpr/primops/fetchGit.hh

22 lines
337 B
C++
Raw Normal View History

2018-11-29 20:18:36 +02: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,
2019-02-12 14:43:32 +02:00
std::optional<std::string> ref, std::string rev,
2018-11-29 20:18:36 +02:00
const std::string & name);
}