diff options
author | Alex Bennée | 2021-01-14 17:57:30 +0100 |
---|---|---|
committer | Alex Bennée | 2021-01-18 11:04:31 +0100 |
commit | 9e5acb373d431ebce03543d7e0e98bacaf6b7027 (patch) | |
tree | affda839c1d80874e0658e6e945c5304c701f395 | |
parent | gitlab: migrate the minimal tools and unit tests from Travis (diff) | |
download | qemu-9e5acb373d431ebce03543d7e0e98bacaf6b7027.tar.gz qemu-9e5acb373d431ebce03543d7e0e98bacaf6b7027.tar.xz qemu-9e5acb373d431ebce03543d7e0e98bacaf6b7027.zip |
scripts/checkpatch.pl: fix git-show invocation to include diffstat
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>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 88c858f67c..e47ad878d8 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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; |