From: Sadie Powell Date: Fri, 5 Mar 2021 00:36:13 +0000 (+0000) Subject: Ignore moved lines in mkheaders. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=338ddb0e59a918dc8e7654bc360a526187e5490c;p=user%2Fhenk%2Fcode%2Finspircd.git Ignore moved lines in mkheaders. --- diff --git a/tools/mkheaders b/tools/mkheaders index ef5302cfa..1bce53742 100755 --- a/tools/mkheaders +++ b/tools/mkheaders @@ -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;