summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eee0890)
raw | patch | inline | side by side (parent: eee0890)
author | Jakub Narebski <jnareb@gmail.com> | |
Wed, 23 Aug 2006 23:58:49 +0000 (01:58 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 26 Aug 2006 02:29:36 +0000 (19:29 -0700) |
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>
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>
gitweb/gitweb.css | patch | blob | history | |
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 4821022535513dafd49b4b978f18baabbeb15f42..5eaa24fd24945bcec7d7fc4230755a85238f82e4 100644 (file)
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
color: #990099;
}
+div.diff.incomplete {
+ color: #cccccc;
+}
+
div.diff_info {
font-family: monospace;
color: #000099;
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 93676857344858ba84c1cbb82351d6c2ecf8a105..fe9b9ee87a94913955dbb18ef5fba007c25dbcfa 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
$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";