]> Lady’s Gitweb - Gitweb/commit
gitweb: Better regexp for SHA-1 committag match
authorJakub Narebski <redacted>
Fri, 6 Feb 2009 09:12:41 +0000 (10:12 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commitbb9db3a422e701cef902d1018a4ad87102f4711080b7e323995fdd9802d60884
treedb0ea84107b38f4c532a068945e0ee639bee1caf85512ad065a2ee4d7626b928
parenta02c806f06d5da1ec22dc5fab02fa8f8ee052d6d17ec4f9ac4c6fcd33380e5e6
gitweb: Better regexp for SHA-1 committag match

Make SHA-1 regexp to be turned into hyperlink (the SHA-1 committag)
to match word boundary at the beginning and the end.  This way we
reduce number of false matches, for example we now don't match
0x74a5cd01 which is hex decimal (for example memory address),
but is not SHA-1.

Suggested-by: Johannes Schindelin <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.288108 seconds and 4 git commands to generate.