forked from lix-project/lix
23 lines
333 B
C++
23 lines
333 B
C++
#pragma once
|
|
|
|
#include "store-api.hh"
|
|
|
|
#include <regex>
|
|
|
|
namespace nix {
|
|
|
|
struct GitInfo
|
|
{
|
|
Path storePath;
|
|
std::string ref;
|
|
Hash rev{htSHA1};
|
|
uint64_t revCount;
|
|
};
|
|
|
|
GitInfo exportGit(ref<Store> store, std::string uri,
|
|
std::optional<std::string> ref,
|
|
std::optional<Hash> rev,
|
|
const std::string & name);
|
|
|
|
}
|