projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
992ddd8
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:38:02 +0000
(12:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:38:02 +0000
(12:38 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
3b12ce6
..
07c6897
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-210,6
+210,10
@@
public class GitRepo : Object
public string get_config(string key) {
public string get_config(string key) {
+
+ if (this.config_cache.has_key(key)) {
+ return this.config_cache.get(key);
+ }
try {
return this.git({ "config" , "gitlive." + key });
} catch (Error e) {
try {
return this.git({ "config" , "gitlive." + key });
} catch (Error e) {