GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 06:43:27 +0000 (14:43 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 06:43:27 +0000 (14:43 +0800)
GitRepo.vala

index 29d0919..a12a719 100644 (file)
@@ -136,6 +136,13 @@ public class GitRepo : Object
         //Repo.superclass.constructor.call(this,cfg);
         
     } 
+    
+    
+    public bool is_autocommit ()
+    {
+       return !FileUtils.test(this.gitdir + "/".gitlive-disable-autocommit , FileTest.IS_DIR);
+    }
+    
     /**
      * add:
      * add files to track.