| | |
| | | final String basePath = params.getString("f", null);
|
| | |
|
| | | Repository r = getRepository();
|
| | | RevCommit commit = JGitUtils.getCommit(r, commitId);
|
| | | RevCommit commit = JGitUtils.getCommit(r, objectId);
|
| | | List<PathModel> paths = JGitUtils.getFilesInPath(r, basePath, commit);
|
| | |
|
| | | // tree page links
|
| | |
| | | add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));
|
| | |
|
| | | // breadcrumbs
|
| | | add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, basePath, commitId)); |
| | | add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, basePath, objectId)); |
| | | if (basePath != null && basePath.trim().length() > 0) {
|
| | | paths.add(0, PathModel.getParentPath(basePath, commitId));
|
| | | paths.add(0, PathModel.getParentPath(basePath, objectId));
|
| | | }
|
| | |
|
| | | final ByteFormat byteFormat = new ByteFormat();
|