@@ -36,6 +36,7 @@ r17: { | |||
changes: | |||
- Improved error logging for servlet containers which provide a null contextFolder (issue 199) | |||
- Improve Gerrit change ref decoration in the refs panel (issue 206) | |||
- Display full commit message on commitdiff page (issue-258) | |||
- Improved the repository url display. This display now indicates your repository access permission, per-protocol. | |||
- Automatically encode/decode usernames for urls using %XX notation on space, @, and \ | |||
- Disable Gson's pretty printing which has a huge performance gain |
@@ -15,13 +15,14 @@ | |||
<!-- commit header --> | |||
<div wicket:id="commitHeader">[commit header]</div> | |||
<!-- changed paths --> | |||
<div style="padding-top:15px;"> | |||
<!-- commit legend --> | |||
<div class="hidden-phone" style="text-align:right;" wicket:id="commitLegend"></div> | |||
<!-- full message --> | |||
<pre style="border-style:none" "class="commit_message" wicket:id="fullMessage">[commit message]</pre> | |||
<!-- commit legend --> | |||
<div class="hidden-phone" style="text-align:right;" wicket:id="commitLegend"></div> | |||
<div class="header"><i class="icon-file"></i> <wicket:message key="gb.changedFiles">[changed files]</wicket:message></div> | |||
</div> | |||
<!-- changed paths --> | |||
<div class="header"><i class="icon-file"></i> <wicket:message key="gb.changedFiles">[changed files]</wicket:message></div> | |||
<table class="pretty"> | |||
<tr wicket:id="changedPath"> |
@@ -16,6 +16,7 @@ | |||
package com.gitblit.wicket.pages; | |||
import java.util.ArrayList; | |||
import java.util.Arrays; | |||
import java.util.List; | |||
import org.apache.wicket.PageParameters; | |||
@@ -29,9 +30,11 @@ import org.eclipse.jgit.diff.DiffEntry.ChangeType; | |||
import org.eclipse.jgit.lib.Repository; | |||
import org.eclipse.jgit.revwalk.RevCommit; | |||
import com.gitblit.Constants; | |||
import com.gitblit.GitBlit; | |||
import com.gitblit.Keys; | |||
import com.gitblit.models.PathModel.PathChangeModel; | |||
import com.gitblit.models.GitNote; | |||
import com.gitblit.models.SubmoduleModel; | |||
import com.gitblit.utils.DiffUtils; | |||
import com.gitblit.utils.DiffUtils.DiffOutputType; | |||
@@ -39,7 +42,9 @@ import com.gitblit.utils.JGitUtils; | |||
import com.gitblit.wicket.WicketUtils; | |||
import com.gitblit.wicket.panels.CommitHeaderPanel; | |||
import com.gitblit.wicket.panels.CommitLegendPanel; | |||
import com.gitblit.wicket.panels.GravatarImage; | |||
import com.gitblit.wicket.panels.LinkPanel; | |||
import com.gitblit.wicket.panels.RefsPanel; | |||
public class CommitDiffPage extends RepositoryPage { | |||
@@ -76,6 +81,8 @@ public class CommitDiffPage extends RepositoryPage { | |||
add(new CommitHeaderPanel("commitHeader", repositoryName, commit)); | |||
addFullText("fullMessage", commit.getFullMessage(), true); | |||
// changed paths list | |||
List<PathChangeModel> paths = JGitUtils.getFilesInCommit(r, commit); | |||