aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/git.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-12 00:50:48 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-12 00:50:48 -0400
commite82b43bf950e1ff11683ae96abdd29879f92488a (patch)
treec05e23715e971a2065e7a01782f556f8c0bc699a /IkiWiki/Plugin/git.pm
parent7e7953f0e240bc0e9201942dd88a4f911904d151 (diff)
downloadikiwiki-e82b43bf950e1ff11683ae96abdd29879f92488a.tar
ikiwiki-e82b43bf950e1ff11683ae96abdd29879f92488a.tar.gz
skip merges
git log --follow seems to sometimes show merges from before the file was ever created. So, skip them, a file shouldn't be first created during a merge anyway.
Diffstat (limited to 'IkiWiki/Plugin/git.pm')
-rw-r--r--IkiWiki/Plugin/git.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 9ecda4ffb..c5c83a3a7 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -613,7 +613,8 @@ sub rcs_getctime ($) {
# Remove srcdir prefix
$file =~ s/^\Q$config{srcdir}\E\/?//;
- my @raw_lines = run_or_die('git', 'log', '--follow',
+ my @raw_lines = run_or_die('git', 'log',
+ '--follow', '--no-merges',
'--pretty=raw', '--raw', '--abbrev=40', '--always', '-c',
'-r', '--', $file);
my @ci;