]> source.dussan.org Git - gitblit.git/commitdiff
Cleanup diff rename output 52/252/1
authorJames Moger <james.moger@gitblit.com>
Fri, 22 May 2015 16:42:59 +0000 (12:42 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 22 May 2015 16:42:59 +0000 (12:42 -0400)
src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java

index 8f0d223a492c8d4064d8ebe43a6e317e24ce6ac3..35549d4e6e77c92a8ab2ea778e2c2f63e9adcbda 100644 (file)
@@ -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