forked from lix-project/lix
6a4c7fb975
Unlike file://<path>, this allows the path to be a dirty Git tree, so nix build /path/to/flake:attr is a convenient way to test building a local flake.
22 lines
348 B
C++
22 lines
348 B
C++
#pragma once
|
|
|
|
#include "store-api.hh"
|
|
|
|
#include <regex>
|
|
|
|
namespace nix {
|
|
|
|
struct GitInfo
|
|
{
|
|
Path storePath;
|
|
std::string rev;
|
|
std::string shortRev;
|
|
std::optional<uint64_t> revCount;
|
|
};
|
|
|
|
GitInfo exportGit(ref<Store> store, const std::string & uri,
|
|
std::optional<std::string> ref, std::string rev,
|
|
const std::string & name);
|
|
|
|
}
|