{
return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
}
+ public void set_auto_branch(bool val)
+ {
+ var cur = this.is_auto_branch();
+ if (cur == val) {
+ return; // no change..
+ }
+ if (cur) {
+ FileUtils.put_contents(this.gitdir + "/.gitlive-enable-auto-branch" , "");
+ } else {
+ // it exists...
+ FileUtils.remove(this.gitdir + "/.gitlive-enable-auto-branch" );
+ }
+
+ }
public bool is_autopush ()
{
return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.EXISTS);