mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 09:46:16 +02:00
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.
21 lines
348 B
C++
21 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);
|
|
|
|
}
|