]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: link to 7-char+ SHA-1s, not only 8-char+
[Gitweb] / gitweb.perl
index 61ee84c615e0158a7ba03c8b54bba5d3876b1ff06fa8e883964159c26afcd074..99ed3e8c5766fa61608e2494489166c33798e548a870a08efd15d44ea79696cc 100755 (executable)
@@ -2037,7 +2037,7 @@ sub format_log_line_html {
        my $line = shift;
 
        $line = esc_html($line, -nbsp=>1);
-       $line =~ s{\b([0-9a-fA-F]{8,40})\b}{
+       $line =~ s{\b([0-9a-fA-F]{7,40})\b}{
                $cgi->a({-href => href(action=>"object", hash=>$1),
                                        -class => "text"}, $1);
        }eg;
This page took 0.138315 seconds and 4 git commands to generate.