forked from lix-project/lix
22 lines
337 B
C++
22 lines
337 B
C++
#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::optional<std::string> ref, std::string rev,
|
|
const std::string & name);
|
|
|
|
}
|