diff options
Diffstat (limited to 'src/libexpr/primops/fetchgit.hh')
-rw-r--r-- | src/libexpr/primops/fetchgit.hh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/libexpr/primops/fetchgit.hh b/src/libexpr/primops/fetchgit.hh index ff228f3b3c6a..056b6fcbe78d 100644 --- a/src/libexpr/primops/fetchgit.hh +++ b/src/libexpr/primops/fetchgit.hh @@ -2,13 +2,22 @@ #include <string> -#include "ref.hh" +#include "util.hh" namespace nix { class Store; -Path exportGit(ref<Store> store, const std::string & uri, - const std::string & ref, const std::string & rev = ""); +struct GitInfo +{ + Path storePath; + std::string rev; + std::string shortRev; + uint64_t revCount = 0; +}; + +GitInfo exportGit(ref<Store> store, const std::string & uri, + const std::string & ref, const std::string & rev = "", + const std::string & name = ""); } |