summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/ComparePage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-09-18 11:20:28 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-18 11:31:00 -0400
commit0250286553ca93406bfaa976d6aae61e76a9d55f (patch)
treea6edb6545a993c3e16709742d1bd177e33fcc9e7 /src/main/java/com/gitblit/wicket/pages/ComparePage.java
parentcd9461c0c05958444d1313b794be57df39d98956 (diff)
downloadgitblit-0250286553ca93406bfaa976d6aae61e76a9d55f.tar.gz
gitblit-0250286553ca93406bfaa976d6aae61e76a9d55f.zip
Removed GitWeb-style diff renderer
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/ComparePage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/ComparePage.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/ComparePage.java b/src/main/java/com/gitblit/wicket/pages/ComparePage.java
index f5f35263..a513f00e 100644
--- a/src/main/java/com/gitblit/wicket/pages/ComparePage.java
+++ b/src/main/java/com/gitblit/wicket/pages/ComparePage.java
@@ -37,8 +37,6 @@ import org.eclipse.jgit.diff.DiffEntry.ChangeType;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
-import com.gitblit.GitBlit;
-import com.gitblit.Keys;
import com.gitblit.models.PathModel.PathChangeModel;
import com.gitblit.models.RefModel;
import com.gitblit.models.RepositoryModel;
@@ -80,9 +78,6 @@ public class ComparePage extends RepositoryPage {
Fragment comparison = new Fragment("comparison", "comparisonFragment", this);
add(comparison);
- DiffOutputType diffType = DiffOutputType.forName(GitBlit.getString(Keys.web.diffStyle,
- DiffOutputType.GITBLIT.name()));
-
RevCommit fromCommit;
RevCommit toCommit;
@@ -113,7 +108,7 @@ public class ComparePage extends RepositoryPage {
fromCommitId.setObject(startId);
toCommitId.setObject(endId);
- String diff = DiffUtils.getDiff(r, fromCommit, toCommit, diffType);
+ String diff = DiffUtils.getDiff(r, fromCommit, toCommit, DiffOutputType.HTML);
// compare page links
// comparison.add(new BookmarkablePageLink<Void>("patchLink", PatchPage.class,