aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-12-16 16:52:39 -0500
committerJoey Hess <joey@kitenet.net>2007-12-16 16:52:39 -0500
commit58f1ef0784117a6b522c8ac64ec24056e1bbad8f (patch)
tree9a3aca7299dc8fc739740543fa07a6c4d16f3194 /IkiWiki
parentc3fed25ad4d301a8e901cf46ba9d11dbf6866d03 (diff)
downloadikiwiki-58f1ef0784117a6b522c8ac64ec24056e1bbad8f.tar
ikiwiki-58f1ef0784117a6b522c8ac64ec24056e1bbad8f.tar.gz
* git: Correct display of multiline commit messages in recentchanges.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Rcs/git.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm
index 5507874e1..d4d2ec7a9 100644
--- a/IkiWiki/Rcs/git.pm
+++ b/IkiWiki/Rcs/git.pm
@@ -367,10 +367,8 @@ sub rcs_recentchanges ($) { #{{{
my @rets;
foreach my $ci (git_commit_info('HEAD', $num)) {
- my $title = join("\n", @{$ci->{'comment'}});
-
# Skip redundant commits.
- next if ($title eq $dummy_commit_msg);
+ next if (@{$ci->{'comment'}}[0] eq $dummy_commit_msg);
my ($sha1, $when) = (
$ci->{'sha1'},
@@ -392,7 +390,7 @@ sub rcs_recentchanges ($) { #{{{
diffurl => $diffurl,
};
}
- push @messages, { line => $title };
+ push @messages, { line => $_ } foreach @{$ci->{'comment'}};
my ($user, $type) = (q{}, "web");