projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b222584
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:03:22 +0000
(12:03 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:03:22 +0000
(12:03 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
e0d87f9
..
fd202f8
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-193,9
+193,11
@@
public class GitRepo : Object
{
// managed =
if (this.get_config("managed") == "") {
- this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0");
+ this.set_config("managed", this.host == "git.roojs.com" ? "1" : "0");
+ }
+ if (this.get_config("autocommit") == "") {
+ this.set_config("autocommit", this.host == "git.roojs.com" ? "1" : "0");
}
-
}
@@
-217,6
+219,7
@@
public class GitRepo : Object
public bool is_autocommit ()
{
+
return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
}
public void set_autocommit(bool val)