projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c8b6d8
)
Git.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 12 Mar 2019 07:50:02 +0000
(15:50 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 12 Mar 2019 07:50:02 +0000
(15:50 +0800)
Git.vala
patch
|
blob
|
history
diff --git
a/Git.vala
b/Git.vala
index
20a120d
..
9be86dd
100644
(file)
--- a/
Git.vala
+++ b/
Git.vala
@@
-27,6
+27,8
@@
void main()
var ix = a.repo.repo.get_index();
ix.add_path("test1");
ix.write();
+ var treeoid = index.write_tree();
+ var tree = a.repo.repo.lookup<Ggit.Tree>(treeoid);
var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
a.repo.repo.create_commit("HEAD", sig, sig, null, "test commit " + str,