diff options
author | James Moger <james.moger@gmail.com> | 2016-01-25 11:55:58 -0500 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2016-01-25 11:55:58 -0500 |
commit | 252dc07d7f85cc344b5919bb7c6166ef84b2102e (patch) | |
tree | d997964fb207d0bb321570ae76ed3a7281f502d2 /src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java | |
parent | 040091508e69df76b1504d10089444e8d6bae2ab (diff) | |
parent | 46f33f87750573713509fbdbd0fc2ae51dc12044 (diff) | |
download | gitblit-252dc07d7f85cc344b5919bb7c6166ef84b2102e.tar.gz gitblit-252dc07d7f85cc344b5919bb7c6166ef84b2102e.zip |
Merge pull request #988 from gitblit/976-raw-download-filestore-item
Fix for #976 - Filestore links via browser
Diffstat (limited to 'src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java')
-rw-r--r-- | src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java index 86b7ca2e..8ebadbf1 100644 --- a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java +++ b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java @@ -33,6 +33,7 @@ import org.eclipse.jgit.diff.DiffEntry; import org.eclipse.jgit.diff.DiffEntry.ChangeType; import org.eclipse.jgit.diff.DiffFormatter; import org.eclipse.jgit.diff.RawText; +import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.util.RawParseUtils; import com.gitblit.models.PathModel.PathChangeModel; @@ -164,11 +165,11 @@ public class GitBlitDiffFormatter extends DiffFormatter { } - public GitBlitDiffFormatter(String commitId, String path, BinaryDiffHandler handler, int tabLength) { + public GitBlitDiffFormatter(String commitId, Repository repository, String path, BinaryDiffHandler handler, int tabLength) { super(new DiffOutputStream()); this.os = (DiffOutputStream) getOutputStream(); this.os.setFormatter(this, handler); - this.diffStat = new DiffStat(commitId); + this.diffStat = new DiffStat(commitId, repository); this.tabLength = tabLength; // If we have a full commitdiff, install maxima to avoid generating a super-long diff listing that // will only tax the browser too much. |