]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Ignore moved lines in mkheaders.
authorSadie Powell <sadie@witchery.services>
Fri, 5 Mar 2021 00:36:13 +0000 (00:36 +0000)
committerSadie Powell <sadie@witchery.services>
Fri, 5 Mar 2021 00:36:13 +0000 (00:36 +0000)
tools/mkheaders

index ef5302cfa9614e80ecde2c20542328b09a79d22f..1bce53742c541520300773acbb34e3923fa130dd 100755 (executable)
@@ -71,7 +71,7 @@ for my $path (@paths) {
                say console_format "Updating copyright headers in <|GREEN $path|>." if defined $ENV{MKHEADERS_VERBOSE};
                my (%author, %authors);
                my $ignored_args = join ' ', map { "--ignore-rev $_" } @ignored_revisions;
-               for my $line (split /\n+/, `git blame $ignored_args --incremental -w HEAD -- $path`) {
+               for my $line (split /\n+/, `git blame $ignored_args --incremental -M -w HEAD -- $path`) {
                        if ($line =~ /^([0-9a-f]{40})(?:\s\d+){3}$/) {
                                $author{COMMITS} //= [];
                                push @{$author{COMMITS}}, $1;