2018-11-29 13:18:36 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
#include <regex>
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct GitInfo
|
|
|
|
{
|
|
|
|
Path storePath;
|
2019-04-19 05:16:14 -04:00
|
|
|
std::string ref;
|
2019-04-19 05:34:23 -04:00
|
|
|
Hash rev{htSHA1};
|
2019-04-19 08:15:51 -04:00
|
|
|
uint64_t revCount;
|
2019-05-28 14:34:02 -04:00
|
|
|
time_t lastModified;
|
2018-11-29 13:18:36 -05:00
|
|
|
};
|
|
|
|
|
2019-04-19 08:06:27 -04:00
|
|
|
GitInfo exportGit(ref<Store> store, std::string uri,
|
2019-04-19 05:34:23 -04:00
|
|
|
std::optional<std::string> ref,
|
|
|
|
std::optional<Hash> rev,
|
2018-11-29 13:18:36 -05:00
|
|
|
const std::string & name);
|
|
|
|
|
|
|
|
}
|