ctucx.git: nimgit

[nimlang] nim-wrapper for libgit2

commit e5fc592c025928b8eda463a2282fbe4cc1fe9288
parent ed0f7b0fe5974ea589181a679ff02d040a2adcec
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 17 Mar 2021 16:34:04 +0100

reference.nim: rename proc getOwner -> owner
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nimgit/reference.nim b/nimgit/reference.nim
@@ -14,9 +14,9 @@ proc isTag* (reference: GitReference): bool = cast[bool](git_reference_is_tag(re
 proc isNote* (reference: GitReference): bool = cast[bool](git_reference_is_note(reference))
 
 
-proc getOwner* (reference: GitReference): GitRepository = git_reference_owner(reference)
+proc owner* (reference: GitReference): GitRepository = git_reference_owner(reference)
 
-proc getRepo* (reference: GitReference): GitRepository = reference.getOwner()
+proc repo* (reference: GitReference): GitRepository = reference.owner()
 
 proc getType* (reference: GitReference): GitReferenceType = cast[GitReferenceType](git_reference_type(reference))