]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Mark boundary commits in 'blame' view
[Gitweb] / gitweb.perl
index 6dcca8c527c9998bfbdaef2a1f2e34124922893b62218679d0d2512106a019b5..e0da96000b8d999339f677b3256b652a4a9644455c4cafa79ec492faaa31446d 100755 (executable)
@@ -4827,7 +4827,7 @@ HTML
                while ($data = <$fd>) {
                        chomp $data;
                        last if ($data =~ s/^\t//); # contents of line
                while ($data = <$fd>) {
                        chomp $data;
                        last if ($data =~ s/^\t//); # contents of line
-                       if ($data =~ /^(\S+) (.*)$/) {
+                       if ($data =~ /^(\S+)(?: (.*))?$/) {
                                $meta->{$1} = $2;
                        }
                }
                                $meta->{$1} = $2;
                        }
                }
@@ -4839,7 +4839,9 @@ HTML
                if ($group_size) {
                        $current_color = ($current_color + 1) % $num_colors;
                }
                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\"";
                if ($group_size) {
                        print "<td class=\"sha1\"";
                        print " title=\"". esc_html($author) . ", $date\"";
This page took 0.226138 seconds and 4 git commands to generate.