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
93a94e2
..
448345c
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-159,6
+159,18
@@
public class GitRepo : Object
}
return ret;
}
}
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:
/**
* remove:
@@
-244,7
+256,7
@@
public class GitRepo : Object
public string pull () throws Error, SpawnError
{
// should probably hand error conditions better...
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( cmd );
@@
-264,6
+276,9
@@
public class GitRepo : Object
return this.git({ "push", "origin", "HEAD" });
}
return this.git({ "push", "origin", "HEAD" });
}
+
+
+
/**
* git:
* The meaty part.. run spawn.. with git..
/**
* git:
* The meaty part.. run spawn.. with git..