]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
web commit normalisation
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 12 Mar 2006 20:18:17 +0000 (20:18 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 12 Mar 2006 20:18:17 +0000 (20:18 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 67004e413168f9eb417c5229318fc8e6ed1e4778..46140c9eab61f0af5504a9342cd5f519a15f3166 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -446,6 +446,12 @@ sub rcs_recentchanges ($) { #{{{
                                $state='body';
                        }
                        elsif ($state eq 'body' && /$div/) {
                                $state='body';
                        }
                        elsif ($state eq 'body' && /$div/) {
+                               if (defined $message[0] &&
+                                   $message[0]=~/^web commit by (\w+)(.*)/) {
+                                       $user="$1 (web)";
+                                       $message[0]=$2;
+                               }
+                               
                                push @ret, { rev => $rev, user => $user,
                                        when => $when, message => [@message],
                                        pages => [@pages] } if @pages;
                                push @ret, { rev => $rev, user => $user,
                                        when => $when, message => [@message],
                                        pages => [@pages] } if @pages;