projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
28ded76
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:02:03 +0000
(12:02 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:02:03 +0000
(12:02 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
99526b6
..
e02ae7b
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-189,6
+189,16
@@
public class GitRepo : Object
return this.currentBranch.name == "master" || this.currentBranch.name == "roojs";
}
return this.currentBranch.name == "master" || this.currentBranch.name == "roojs";
}
+ public void init_config()
+ {
+ // managed =
+ if (this.get_config("managed") == "") {
+ this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0";
+ }
+
+ }
+
+
public string get_config(string key) {
return this.git({ "config" , "gitlive." + key);
public string get_config(string key) {
return this.git({ "config" , "gitlive." + key);