From 864428ff6774672860633d10fa20023f5ffe9230 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 22 May 2015 12:42:59 -0400 Subject: [PATCH] Cleanup diff rename output --- src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java index 8f0d223a..35549d4e 100644 --- a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java +++ b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java @@ -473,7 +473,8 @@ public class GitBlitDiffFormatter extends DiffFormatter { String[] lines = html.split("\n"); StringBuilder sb = new StringBuilder(); for (String line : lines) { - if (line.startsWith("index")) { + if (line.startsWith("index") || line.startsWith("similarity") + || line.startsWith("rename from ") || line.startsWith("rename to ")) { // skip index lines } else if (line.startsWith("new file") || line.startsWith("deleted file")) { // skip new file lines -- 2.39.5