projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a785b
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 25 Aug 2017 05:18:49 +0000
(13:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 25 Aug 2017 05:18:49 +0000
(13:18 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
ab17558
..
2644b68
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-164,16
+164,22
@@
public class GitRepo : Object
public bool is_ignore(string fname) throws Error, SpawnError
{
+ if (this.ignore_files.has_key(fname)) {
+ return this.ignore_files.get(fname);
+ }
+
try {
var ret = this.git( { "check-ignore" , fname } );
+ this.ignore_files.set(fname, ret == fname);
return ret == fname;
} catch (SpawnError e) {
+ this.ignore_files.set(fname, false);
return false;
}
-
-
+
}
+
/**
* remove:
* remove files to track.