commit 99a8c00d819526186dd7ceb7d1eae30c85158bc2
parent b618202dea40a066535144ec552259c83d3ea944
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 00:22:09 +0100
parent b618202dea40a066535144ec552259c83d3ea944
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 00:22:09 +0100
types.nim: add types GitTreeEntry, GitTag, GitBlob
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nimgit/types.nim b/nimgit/types.nim @@ -7,11 +7,14 @@ type GitObjectId* = ptr git_oid GitCommit* = ptr git_commit GitTree* = ptr git_tree + GitTreeEntry* = ptr git_tree_entry GitReference* = ptr git_reference GitRevisionWalker* = ptr git_revwalk GitBranchIterator* = ptr git_branch_iterator GitBuffer* = ptr git_buf - + GitTag* = ptr git_tag + GitBlob* = ptr git_blob + GitObjectKind* = enum # we have to add 2 here to satisfy nim; discriminants.low must be zero goAny = (2 + GIT_OBJECT_ANY, "object") # -2