summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2006-08-24 01:58:49 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-25 19:29:36 -0700
commitaf33ef21bfb0171973393e21deac7621efd2ec7a (patch)
treed8c886f4a0a4aff238517e49a327175dd34ea8d4 /gitweb/gitweb.perl
parentgitweb: Use git-diff-tree patch output for commitdiff (diff)
downloadtgif-af33ef21bfb0171973393e21deac7621efd2ec7a.tar.xz
gitweb: Show information about incomplete lines in commitdiff
In format_diff_line, instead of skipping errors/incomplete lines, for example "\ No newline at end of file" in HTML pretty-printing of diff, use "incomplete" class for div. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9367685734..fe9b9ee87a 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -539,7 +539,7 @@ sub format_diff_line {
$diff_class = " chunk_header";
} elsif ($char eq "\\") {
# skip errors (incomplete lines)
- return "";
+ $diff_class = " incomplete";
}
$line = untabify($line);
return "<div class=\"diff$diff_class\">" . esc_html($line) . "</div>\n";