]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Use git log --no-renames for recentchanges
authorSimon McVittie <smcv@debian.org>
Sat, 3 Sep 2016 22:29:37 +0000 (23:29 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 3 Sep 2016 22:47:06 +0000 (23:47 +0100)
Otherwise, recent git releases show renames as renames, and we do not
see that newdir/test5 was affected.

Bug-Debian: https://bugs.debian.org/835612

IkiWiki/Plugin/git.pm

index bfca933fd8a18c5722876c2128a22716a1d325aa..249338d4d152763d3574d19e123cd23a39e44666 100644 (file)
@@ -469,7 +469,7 @@ sub git_commit_info ($;$) {
 
        my @raw_lines = run_or_die('git', 'log', @opts,
                '--pretty=raw', '--raw', '--abbrev=40', '--always', '-c',
-               '-r', $sha1, '--', '.');
+               '-r', $sha1, '--no-renames', '--', '.');
 
        my @ci;
        while (my $parsed = parse_diff_tree(\@raw_lines)) {