public bool active = false;
public string lastrev = "";
public string name = "";
+ public bool is_remote;
public string remote = "";
public string remoterev = "";
if (parts[1] == "->") { // it's an alias.. eg. remotes/origin/HEAD -> origin/master..
return false;
}
-
+ this.is_remote = false;
this.lastrev = parts[1];
if (parts[0].has_prefix("remotes/")) {
+ this.is_remote = true;
this.remote = parts[0];
} else {
this.name = parts[0];
}
public string realName()
{
- return this.name == "" ? this.remote : this.name;
+ return this.is_remote ? this.remote : this.name;
}
public void create()