]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/checkpatch.pl: fix git-show invocation to include diffstat
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 14 Jan 2021 16:57:30 +0000 (16:57 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 18 Jan 2021 10:04:31 +0000 (10:04 +0000)
Without this checkpatch keeps complaining about new/changed files even
when MAINTAINERS has been updated. Normal invocations of checkpatch on
patch files rather than commit IDs are unaffected.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210114165730.31607-13-alex.bennee@linaro.org>

scripts/checkpatch.pl

index 88c858f67cbb13de1c87adafb08a4f02d2d2f92f..e47ad878d8915ef2efceba1bc6b013080bcf0ac3 100755 (executable)
@@ -399,7 +399,7 @@ if ($chk_branch) {
        my $num_patches = @patches;
        for my $hash (@patches) {
                my $FILE;
-               open($FILE, '-|', "git", "show", $hash) ||
+               open($FILE, '-|', "git", "show", "--patch-with-stat", $hash) ||
                        die "$P: git show $hash - $!\n";
                while (<$FILE>) {
                        chomp;