projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitRepo.vala
[gitlive]
/
GitRepo.vala
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
{
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 } );
try {
var ret = this.git( { "check-ignore" , fname } );
+ this.ignore_files.set(fname, ret == fname);
return ret == fname;
} catch (SpawnError e) {
return ret == fname;
} catch (SpawnError e) {
+ this.ignore_files.set(fname, false);
return false;
}
return false;
}
-
-
+
}
}
+
/**
* remove:
* remove files to track.
/**
* remove:
* remove files to track.