GitRepo.vala
[gitlive] / 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.