aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fetchGit.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-19 11:34:23 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-19 11:34:23 +0200
commit6960ee929dcf95c24e0db761fd4bc46c3749abb2 (patch)
tree02b85e567301effc3511b45bad2cf05e637ddc84 /src/libexpr/primops/fetchGit.hh
parent46cb15df9b3501ca631779fa7d5c6299c1c17b53 (diff)
Clean up exportGit argument handling
Diffstat (limited to 'src/libexpr/primops/fetchGit.hh')
-rw-r--r--src/libexpr/primops/fetchGit.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/primops/fetchGit.hh b/src/libexpr/primops/fetchGit.hh
index 5937bdcc0..a867f38f6 100644
--- a/src/libexpr/primops/fetchGit.hh
+++ b/src/libexpr/primops/fetchGit.hh
@@ -10,13 +10,13 @@ struct GitInfo
{
Path storePath;
std::string ref;
- std::string rev;
- std::string shortRev;
+ Hash rev{htSHA1};
std::optional<uint64_t> revCount;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
- std::optional<std::string> ref, std::string rev,
+ std::optional<std::string> ref,
+ std::optional<Hash> rev,
const std::string & name);
}