}
return ret;
}
+
+ public bool is_ignore(string fname) throws Error, SpawnError
+ {
+ try {
+ var ret = this.git( { "check-ignore" , fname } );
+ return ret == fname;
+ } catch (SpawnError e) {
+ return false;
+ }
+
+
+ }
/**
* remove:
public string pull () throws Error, SpawnError
{
// should probably hand error conditions better...
- string[] cmd = { "pull" , "--no-edit", "origin", "HEAD" };
+ string[] cmd = { "pull" , "--no-edit" };
return this.git( cmd );
return this.git({ "push", "origin", "HEAD" });
}
+
+
+
/**
* git:
* The meaty part.. run spawn.. with git..