mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-09-22 09:18:04 +03:00
23 lines
356 B
C++
23 lines
356 B
C++
#pragma once
|
|
|
|
#include "store-api.hh"
|
|
|
|
#include <regex>
|
|
|
|
namespace nix {
|
|
|
|
struct GitInfo
|
|
{
|
|
Path storePath;
|
|
std::string ref;
|
|
Hash rev{htSHA1};
|
|
std::optional<uint64_t> revCount;
|
|
};
|
|
|
|
GitInfo exportGit(ref<Store> store, const std::string & uri,
|
|
std::optional<std::string> ref,
|
|
std::optional<Hash> rev,
|
|
const std::string & name);
|
|
|
|
}
|