From: Alan Knowles Date: Wed, 19 Dec 2018 04:00:47 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=28ded760456a172ffd38be8c11fad713106ed384 GitRepo.vala --- diff --git a/GitRepo.vala b/GitRepo.vala index d0bbe5da..99526b6b 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -190,11 +190,20 @@ public class GitRepo : Object } + public string get_config(string key) { + return this.git({ "config" , "gitlive." + key); + } + public string set_config(string key, string value) { + return this.git({ "config" , "gitlive." + key, value); + } + public bool is_managed() { // is it a roojs origin? if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed. + var r = this.git({ "config" , "gitlive.managed"); + return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS); } // otherwise see if unmanaged is set to disable it..