X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/aa850baeea643106c0fc945a1ff1429cd7d408b779af22a186e13d1e522563bf..4ca9c7847a5ad6dd281879b2cc5a337ff91a13a1c55d08c330a7f49824b2eba8:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 99ed3e8..4819df8 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2037,10 +2037,24 @@ sub format_log_line_html { my $line = shift; $line = esc_html($line, -nbsp=>1); - $line =~ s{\b([0-9a-fA-F]{7,40})\b}{ + $line =~ s{ + \b + ( + # The output of "git describe", e.g. v2.10.0-297-gf6727b0 + # or hadoop-20160921-113441-20-g094fb7d + (?a({-href => href(action=>"object", hash=>$1), -class => "text"}, $1); - }eg; + }egx; return $line; } @@ -8072,7 +8086,7 @@ sub git_search_help {

Pattern is by default a normal string that is matched precisely (but without regard to case, except in the case of pickaxe). However, when you check the re checkbox, the pattern entered is recognized as the POSIX extended -regular expression (also case +regular expression (also case insensitive).

commit