Git.vala
authorAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:50:02 +0000 (15:50 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:50:02 +0000 (15:50 +0800)
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,