commit 8648e2ab324a4e59ae61f47df37cb4319bcdd823
parent 847719ba79186611709a0c46cea41d83578dbda1
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 01:42:48 +0100
parent 847719ba79186611709a0c46cea41d83578dbda1
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Mar 2021 01:42:48 +0100
update example showLastCommit
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/showLastCommit.nim b/showLastCommit.nim @@ -1,4 +1,4 @@ -import os, times +import os, times, posix, strutils import nimgit if paramCount() == 0: @@ -36,14 +36,14 @@ try: echo "" - echo "tree:" - echo "=========" + echo "tree of that commit:" + echo "======================" for entry in tree: if entry.type == goTree: for entry in tree: - echo $entry.id & " " & $entry.mode & " " & $entry.type & " " & entry.name + echo $entry.id & " " & entry.modeStr & " " & $entry.type & " " & entry.name else: - echo $entry.id & " " & $entry.mode & " " & $entry.type & " " & entry.name + echo $entry.id & " " & entry.modeStr & " " & $entry.type & " " & entry.name free(tree) free(commit)