GitRepo.vala
[gitlive] / GitRepo.vala
index 93a94e2..448345c 100644 (file)
@@ -159,6 +159,18 @@ public class GitRepo : Object
         }
         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:
@@ -244,7 +256,7 @@ public class GitRepo : Object
     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 );
 
         
@@ -264,6 +276,9 @@ public class GitRepo : Object
         return this.git({ "push", "origin", "HEAD" });
         
     }
+    
+    
+    
      /**
      * git:
      * The meaty part.. run spawn.. with git..