X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=e51d150385e785aff1147aaf85f43718688eed04;hp=d2c5492a226a31b2e5d779a55aacb83d7c9e7dce;hb=08415bc285bb4d01c01b0965bdd3789a63e3dba7;hpb=d89adab1f432ffa67d3a23b142e79e11e51d4c63 diff --git a/GitRepo.vala b/GitRepo.vala index d2c5492a..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 () {