Scm/Git/Repo.vala
authorAlan Knowles <alan@akbkhome.com>
Sat, 10 May 2014 10:40:10 +0000 (18:40 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 10 May 2014 10:40:10 +0000 (18:40 +0800)
Scm/Git/Repo.vala

index 2c15f7f..a20bbd2 100644 (file)
 class GitRepo : Object
 {
     
+
+
+    /**
+    * index of.. matching gitpath..
+    */
+     public static int indexOfAdd( Array<GitRepo> repos, string gitpath) {
+            for(var i =0; i < repos.length; i++) {
+                if (reos.index(i).gitpath == add) {
+                    return i;
+                }
+            }
+            return -1;
+        }
+    }
+
+
+
      Array<GitMontitorQueue> cmds;
 
 
@@ -82,18 +99,6 @@ class GitRepo : Object
 
     },
     
-    /**
-    * index of.. matching gitpath..
-    */
-     public static int indexOfAdd( Array<GitRepo> repos, string gitpath) {
-            for(var i =0; i < repos.length; i++) {
-                if (reos.index(i).gitpath == add) {
-                    return i;
-                }
-            }
-            return -1;
-        }
-    }
     /**
      * commit:
      * perform a commit.