Gee.ArrayList<Ggit.Branch> branches = null;
public Gee.ArrayList<Ggit.Branch> loadBranches()
{
- var ret = new Gee.ArrayList<Ggit.Branch>();
+ this.branches new Gee.ArrayList<Ggit.Branch>();
var r = this.repo.enumerate_branches(Ggit.BranchType.LOCAL);
GLib.debug("got branch: name = %s upstream = %s oid = %s roid= %s",
br.get_name(), br.get_upstream().get_name(),
head.to_string(), rhead.to_string());
-
+ this.branches.add(br);
}
-
-
return ret;
}
+
+
public void fetchAll()
{
// remotes probably will not work with http auth..