From c809aa64f9643fee8914881313a557aca790e741 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 14:43:27 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.39.2