/** Gets branches by {@linkplain GHBranch#getName() their names}. */ public Map<String, GHBranch> getBranches() throws IOException { Map<String, GHBranch> r = new TreeMap<String, GHBranch>(); for (GHBranch p : root.retrieve().to(getApiTailUrl("branches"), GHBranch[].class)) { p.wrap(this); r.put(p.getName(), p); } return r; }
public GHCompare getCompare(GHBranch id1, GHBranch id2) throws IOException { return getCompare(id1.getName(), id2.getName()); }