diffHighlighter: Display removed, but empty, plain-text files

This commit is contained in:
Johannes Gilger
2009-02-07 15:01:53 +01:00
parent 20b5fa6214
commit f23b3c498f
+5
View File
@@ -122,6 +122,11 @@ var highlightDiff = function(diff, element, callbacks) {
startname = "/dev/null";
continue;
}
if (firstChar == "d") {
if (l.match(/^deleted file mode .*$/))
endname = "/dev/null";
continue;
}
if (firstChar == "-") {
if (match = l.match(/^--- (a\/)?(.*)$/))
startname = match[2];