X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GitRepo.vala;h=e51d150385e785aff1147aaf85f43718688eed04;hb=fc7eb32429da35c28c1f4b33de16925d1af5ef78;hp=4487b6783f53779a9234e07c13aaf87a88f6fe02;hpb=f38120dee592b816594ab635c624aa858e00b4c1;p=gitlive diff --git a/GitRepo.vala b/GitRepo.vala index 4487b678..e51d1503 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -163,11 +163,17 @@ public class GitRepo : Object var cache = GitRepo.singleton().cache; //Repo.superclass.constructor.call(this,cfg); - if ( !cache.has_key(path) ) { - cache.set( path, this); + if ( !cache.has_key(path) ) { + cache.set( path, this); } + this.loadBranches(); } + public bool is_wip_branch() + { + return this.currentBranch.name.has_prefix("wip_") + + } public bool is_autocommit () { @@ -201,6 +207,10 @@ public class GitRepo : Object } } + + + + public string branchesToString() { var ret = "";