GitBranch.vala
authorAlan Knowles <alan@roojs.com>
Wed, 14 Nov 2018 08:58:28 +0000 (16:58 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Nov 2018 08:58:28 +0000 (16:58 +0800)
GitBranch.vala

index 348dcf8..9ad6172 100644 (file)
@@ -94,7 +94,9 @@ public class GitBranch : Object
                 
             branches.get(rname).name = lname;
         }
-        
+        /*
+        this bit of the code tries to turn a local branch into a track of a remote one.
+        -- that's probably not a good idea.
         var r_replace = new Regex("^remotes/");
         var o_replace = new Regex("^origin/");
         foreach(var r in remotes.values) {
@@ -104,10 +106,10 @@ public class GitBranch : Object
                var name = r_replace.replace(r.name, r.name.length,0, "");
                name = o_replace.replace(name, name.length,0, "");
                name = name.replace("/", ".");
-        
+               
         }
-        
-        repo.branches = branches;
+        */
+        repo.branches = local;