| | |
| | | import org.eclipse.jgit.lib.Constants;
|
| | | import org.eclipse.jgit.lib.Repository;
|
| | |
|
| | | import com.gitblit.models.RefModel;
|
| | | import com.gitblit.models.RepositoryModel;
|
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.utils.StringUtils;
|
| | | import com.gitblit.wicket.LinkPanel;
|
| | | import com.gitblit.wicket.WicketUtils;
|
| | | import com.gitblit.wicket.models.RefModel;
|
| | | import com.gitblit.wicket.models.RepositoryModel;
|
| | | import com.gitblit.wicket.pages.BranchesPage;
|
| | | import com.gitblit.wicket.pages.LogPage;
|
| | | import com.gitblit.wicket.pages.SummaryPage;
|
| | |
| | |
|
| | | // branches
|
| | | List<RefModel> branches = new ArrayList<RefModel>();
|
| | | branches.addAll(JGitUtils.getLocalBranches(r, maxCount));
|
| | | branches.addAll(JGitUtils.getLocalBranches(r, false, maxCount));
|
| | | if (model.showRemoteBranches) {
|
| | | branches.addAll(JGitUtils.getRemoteBranches(r, maxCount));
|
| | | branches.addAll(JGitUtils.getRemoteBranches(r, false, maxCount));
|
| | | }
|
| | | Collections.sort(branches);
|
| | | Collections.reverse(branches);
|