git2go 的 git.Patch 或 libgit2 的 git_patch 返回以下格式的 String 值:
"diff": "diff --git a/test b/test
index 9daeafb..dced80a 100644
--- a/test
+++ b/test
@@ -1 +1,3 @@
test
+
+test"
请注意,这index 9daeafb..dced80a 100644
不是完整的索引。无论如何使用 libgit2 / git2go 来返回完整索引?即跑步的等价性git diff --full-index
?