Only use/replace commit string at the beginning of the log message.
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 12 Jan 2011 18:40:11 +0000 (10:40 -0800)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 12 Jan 2011 18:40:11 +0000 (10:40 -0800)
templates/log.tt

index c5d275a644d26e700c072530288324c41526b5d2..43b89c413ce734394de7a2c3123916789b4d3fc6 100644 (file)
@@ -26,8 +26,8 @@ See accompanying License file for license details
        pagebutton = 'none'
 %]
 [%- BLOCK gitlog ;
-       commitref = clog.replace('commit ([0-9A-Fa-f]+)(.|\n)*','$1');
-       logtail = clog.replace('commit ([0-9A-Fa-f]+)','');
+       commitref = clog.replace('^commit ([0-9A-Fa-f]+)(.|\n)*','$1');
+       logtail = clog.replace('^commit ([0-9A-Fa-f]+)','');
        logtail = logtail.replace('\n',' ');
 
 %]<a href="[% giturl ; commitref %]">[% commitref %]</a>[% logtail | html %]