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;
|
2019-04-08 20:46:25 +00:00
|
|
|
std::optional<uint64_t> revCount;
|
2018-11-29 18:18:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GitInfo exportGit(ref<Store> store, const std::string & uri,
|
2019-02-12 12:43:32 +00:00
|
|
|
std::optional<std::string> ref, std::string rev,
|
2018-11-29 18:18:36 +00:00
|
|
|
const std::string & name);
|
|
|
|
|
|
|
|
}
|