X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GitRepo.vala;h=a12a71970582b95c58b1177fdb781657b2c2d4d2;hb=c809aa64f9643fee8914881313a557aca790e741;hp=29d091901154971bec7e64f7bb8d6ff323ecbdfe;hpb=5d27295135a6c1ee5bc405e8dafa19d9df9a829b;p=gitlive diff --git a/GitRepo.vala b/GitRepo.vala index 29d09190..a12a7197 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -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.