From a3f138eb624031e06f385eebeb974a1f78ab88bf Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 14:44:00 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GitRepo.vala b/GitRepo.vala index 1b0eaaf6..4c1185fe 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -142,7 +142,10 @@ public class GitRepo : Object { return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.IS_DIR); } - + public bool is_autopush () + { + return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.IS_DIR); + } /** * add: * add files to track. -- 2.39.2