mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
diffHighlighter: Display removed, but empty, plain-text files
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user