James Moger
2011-04-14 155bf78e3377910d29b2c912f58c0f496cb428e8
src/com/gitblit/wicket/pages/CommitDiffPage.java
@@ -25,15 +25,15 @@
      Repository r = getRepository();
      RevCommit commit = JGitUtils.getCommit(r, objectId);
      String diff = JGitUtils.getCommitDiff(r, commit, true);
      String diff = JGitUtils.getCommitDiff(r, commit, true);
      List<String> parents = new ArrayList<String>();
      if (commit.getParentCount() > 0) {
         for (RevCommit parent : commit.getParents()) {
            parents.add(parent.name());
         }
      }
      // commit page links
      if (parents.size() == 0) {
         add(new Label("parentLink", "none"));
@@ -46,7 +46,7 @@
      add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));
      // changed paths list
      List<PathModel> paths  = JGitUtils.getFilesInCommit(r, commit);
      List<PathModel> paths = JGitUtils.getFilesInCommit(r, commit);
      ListDataProvider<PathModel> pathsDp = new ListDataProvider<PathModel>(paths);
      DataView<PathModel> pathsView = new DataView<PathModel>("changedPath", pathsDp) {
         private static final long serialVersionUID = 1L;
@@ -59,7 +59,7 @@
            } else {
               item.add(new LinkPanel("pathName", "list", entry.path, BlobPage.class, newPathParameter(entry.path)));
            }
            item.add(new BookmarkablePageLink<Void>("patch", PatchPage.class, newPathParameter(entry.path)));
            item.add(new BookmarkablePageLink<Void>("view", BlobPage.class, newPathParameter(entry.path)));
            item.add(new BookmarkablePageLink<Void>("blame", BlobPage.class).setEnabled(false));
@@ -72,7 +72,7 @@
      add(pathsView);
      add(new Label("diffText", diff).setEscapeModelStrings(false));
   }
   @Override
   protected String getPageName() {
      return getString("gb.commitdiff");