branches.add(0, configBranch);
}
if (headBranch != null) {
branches.add(0, headBranch);
}
return new ListBranchesResult(branches, pctl.canAddRefs(), false);
}
private Branch createBranch(final Ref ref, final RefControl refControl,
final Set<String> targets) {
final Branch b = createBranch(ref.getName());