aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Rcs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-10-31 18:32:22 -0400
committerJoey Hess <joey@kodama.kitenet.net>2007-10-31 18:32:22 -0400
commit3506f4ba07b612312f7b892c73f5d486f320974e (patch)
tree75e73129b4d660828925ca9c3229b3568c7bffc8 /IkiWiki/Rcs
parent61c2030b2db03d2a83a210b2784fe25246c0be42 (diff)
downloadikiwiki-3506f4ba07b612312f7b892c73f5d486f320974e.tar
ikiwiki-3506f4ba07b612312f7b892c73f5d486f320974e.tar.gz
* Improve the RecentChanges display for git merges, by passing -c instead
of -m to git-log, and by skipping display of commits that change no pages.
Diffstat (limited to 'IkiWiki/Rcs')
-rw-r--r--IkiWiki/Rcs/git.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm
index a9efbb092..68b573fb9 100644
--- a/IkiWiki/Rcs/git.pm
+++ b/IkiWiki/Rcs/git.pm
@@ -258,7 +258,7 @@ sub git_commit_info ($;$) { #{{{
$num ||= 1;
my @raw_lines = run_or_die('git', 'log', "--max-count=$num",
- '--pretty=raw', '--raw', '--abbrev=40', '--always', '-m',
+ '--pretty=raw', '--raw', '--abbrev=40', '--always', '-c',
'-r', $sha1, '--', '.');
my ($prefix) = run_or_die('git', 'rev-parse', '--show-prefix');
@@ -412,7 +412,7 @@ sub rcs_recentchanges ($) { #{{{
when => $when,
message => [@messages],
pages => [@pages],
- };
+ } if @pages;
last if @rets >= $num;
}