Git.vala
authorAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:39:52 +0000 (15:39 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:39:52 +0000 (15:39 +0800)
Git.vala

index 6ce0450..c895107 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -1,5 +1,5 @@
 
-// valac -o /tmp/ggit Git.vala --pkg libgit2-glib-1.0 --pkg libsoup-2.4
+// valac -o /tmp/ggit Git.vala --pkg libgit2-glib-1.0 --pkg libsoup-2.4 -g
 
 
 
@@ -22,7 +22,7 @@ void main()
        var a = new GitLive.Repo("/home/alan/git/test2");
        //a.fetchAll();
        GLib.FileUtils.set_contents("/home/alan/git/test2/test1", 
-               GLib.DateTime.now_utc().format("%Y-%m-%d %H:%M:%S")
+               (new GLib.DateTime.now_utc()).format("%Y-%m-%d %H:%M:%S")
        );
        // mmh.. no git add/commit in library...
        string[] spawn_args = {"git", "commit", "-m", "test", "-a"};