]> sipb.mit.edu Git - ikiwiki.git/commitdiff
git: Skip over signed-off-by and similar lines in commit messages when generating...
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 22:03:44 +0000 (18:03 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 22:03:44 +0000 (18:03 -0400)
IkiWiki/Rcs/git.pm
debian/changelog

index 5668936dd0ef9aff1e2f66c7d9987964be4f1647..0369008878cabae640bb4cb771705ae2e3e6d0dd 100644 (file)
@@ -383,7 +383,10 @@ sub rcs_recentchanges ($) { #{{{
                                diffurl => $diffurl,
                        };
                }
                                diffurl => $diffurl,
                        };
                }
-               push @messages, { line => $_ } foreach @{$ci->{'comment'}};
+
+               push @messages, { line => $_ } foreach grep {
+                       ! m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i
+               }  @{$ci->{'comment'}};
 
                my ($user, $type) = (q{}, "web");
 
 
                my ($user, $type) = (q{}, "web");
 
index ca916bcd3fcac95c47d13739e69f3ff4a08dd9cc..df09e91c580a5974db1fa95dcfef9ae8dc4950ed 100644 (file)
@@ -9,6 +9,8 @@ ikiwiki (2.47) UNRELEASED; urgency=low
     an orphaned page.
   * inline: Display a message if the 'pages' parameter is missing, before
     it just expanded to nothing.
     an orphaned page.
   * inline: Display a message if the 'pages' parameter is missing, before
     it just expanded to nothing.
+  * git: Skip over signed-off-by and similar lines in commit messages
+    when generating recentchanges.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 13 May 2008 12:30:18 -0400
 
 
  -- Joey Hess <joeyh@debian.org>  Tue, 13 May 2008 12:30:18 -0400