}
-
public static Array<GitRepo> list()
{
return list_cache;
}
-
+
FileInfo next_file;
while (true) {
public bool is_ignore(string fname) throws Error, SpawnError
{
+ if (fname == ".gitignore") {
+ this.ignore_files.clear();
+ }
+
+ if (this.ignore_files.has_key(fname)) {
+ return this.ignore_files.get(fname);
+ }
+
try {
var ret = this.git( { "check-ignore" , fname } );
- return ret == fname;
+ this.ignore_files.set(fname, ret.length > 0);
+ return ret.length > 0;
} catch (SpawnError e) {
+ this.ignore_files.set(fname, false);
return false;
}
-
-
+
}
+
/**
* remove:
* remove files to track.
}
+
/**
* commit:
* perform a commit.