From 338ddb0e59a918dc8e7654bc360a526187e5490c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 5 Mar 2021 00:36:13 +0000 Subject: Ignore moved lines in mkheaders. --- tools/mkheaders | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/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; -- cgit v1.2.3