On Fri, Oct 14, 2016 at 8:40 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Jakub Narębski <jnareb@xxxxxxxxx> writes: > >> s/SHA1/SHA-1/g in above paragraph (for correctness and consistency). >>> >>> I think it's fairly dubious to link to things matching [0-9a-fA-F] >>> here as opposed to just [0-9a-f], that dates back to the initial >>> version of gitweb from 161332a ("first working version", >>> 2005-08-07). Git will accept all-caps SHA1s, but didn't ever produce >>> them as far as I can tell. >> >> All right. If we decide to be more strict in what we accept, we can >> do it in a separate commit. >> >>> >>> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> >> >> Acked-by: Jakub Narębski <jnareb@xxxxxxxxx> > > Thanks for a review. As the topic is not yet in 'next', I'll squish > in your Acked-by: to them. I saw them only for 1 & 2/3; would > another for 3/3 be coming soon? As far as I can tell the only outstanding "change this" is your s/SHA1/SHA-1/ in <xmqq37k9jm86.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, do you want to fix that up or should I submit another series? >> >>> --- >>> gitweb/gitweb.perl | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl >>> index cba7405..92b5e91 100755 >>> --- a/gitweb/gitweb.perl >>> +++ b/gitweb/gitweb.perl >>> @@ -2036,7 +2036,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}{ >> >> By the way, it is quite long commit message for one character change. >> Not that it is a bad thing... >> >>> $cgi->a({-href => href(action=>"object", hash=>$1), >>> -class => "text"}, $1); >>> }eg; >>>