gitweb: Mark boundary commits in 'blame' view
[gitweb.git] / gitweb / gitweb.perl
index 7fbd5ff89e82d3c5b1496ff116c7624f538fd66c..3078b9280b8c922ea657a5df85acb36d0bf33e4a 100755 (executable)
@@ -4826,7 +4826,7 @@ sub git_blame {
                while ($data = <$fd>) {
                        chomp $data;
                        last if ($data =~ s/^\t//); # contents of line
-                       if ($data =~ /^(\S+) (.*)$/) {
+                       if ($data =~ /^(\S+)(?: (.*))?$/) {
                                $meta->{$1} = $2;
                        }
                }
@@ -4838,7 +4838,9 @@ sub git_blame {
                if ($group_size) {
                        $current_color = ($current_color + 1) % $num_colors;
                }
-               print "<tr id=\"l$lineno\" class=\"$rev_color[$current_color]\">\n";
+               my $tr_class = $rev_color[$current_color];
+               $tr_class .= ' boundary' if (exists $meta->{'boundary'});
+               print "<tr id=\"l$lineno\" class=\"$tr_class\">\n";
                if ($group_size) {
                        print "<td class=\"sha1\"";
                        print " title=\"". esc_html($author) . ", $date\"";