diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index cf32c8f5fa32ada7c64f066908c6db368dc9e656..afa7f79f83eb704eb10ef88fb3f8eb8acf20c135 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1279,6 +1279,11 @@ sub process { } } +# Accept git diff extended headers as valid patches + if ($line =~ /^(?:rename|copy) (?:from|to) [\w\/\.\-]+\s*$/) { + $is_patch = 1; + } + #check the patch for a signoff: if ($line =~ /^\s*signed-off-by:/i) { # This is a signoff, if ugly, so do not double report.