#pragma once #include "store-api.hh" #include namespace nix { struct GitInfo { Path storePath; std::optional ref; Hash rev{htSHA1}; std::optional revCount; time_t lastModified; }; GitInfo exportGit( ref store, std::string uri, std::optional ref, std::optional rev, const std::string & name); GitInfo exportGitHub( ref store, const std::string & owner, const std::string & repo, std::optional ref, std::optional rev); }