From 0bf52484278b5afbc910a57d4842ed69f7c88222 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 15 May 2008 18:03:44 -0400 Subject: git: Skip over signed-off-by and similar lines in commit messages when generating recentchanges. --- IkiWiki/Rcs/git.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Rcs') diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm index 5668936dd..036900887 100644 --- a/IkiWiki/Rcs/git.pm +++ b/IkiWiki/Rcs/git.pm @@ -383,7 +383,10 @@ sub rcs_recentchanges ($) { #{{{ 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"); -- cgit v1.2.3