Git.vala
authorAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:48:37 +0000 (15:48 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 Mar 2019 07:48:37 +0000 (15:48 +0800)
Git.vala

index c50834d..8f5be3c 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -25,7 +25,8 @@ void main()
        GLib.FileUtils.set_contents("/home/alan/git/test1-clone/test1",  str); 
        
        var ix = a.repo.repo.get_index();
-       
+       ix.add_path("test1");
+
        var sig = new Ggit.Signature.now("Alan Knowles", "alan@roojs.com");
        a.repo.repo.create_commit("HEAD", sig, sig, null, "test commit " + str, 
        // mmh.. no git add/commit in library...