From: Alan Knowles Date: Tue, 30 Oct 2018 06:43:27 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=c809aa64f9643fee8914881313a557aca790e741 GitRepo.vala --- 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.