[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/9] scripts/checkpatch: Do not use mailmap
|
From: |
Michael Tokarev |
|
Subject: |
[PULL 5/9] scripts/checkpatch: Do not use mailmap |
|
Date: |
Mon, 29 Apr 2024 09:45:32 +0300 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
The .mailmap file fixes mistake we already did.
Do not use it when running checkpatch.pl, otherwise
we might commit the very same mistakes.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
scripts/checkpatch.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 12e9028b10..76a0b79266 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -435,8 +435,8 @@ if ($chk_branch) {
my @patches;
my %git_commits = ();
my $HASH;
- open($HASH, "-|", "git", "log", "--reverse", "--no-merges",
"--format=%H %s", $ARGV[0]) ||
- die "$P: git log --reverse --no-merges --format='%H %s'
$ARGV[0] failed - $!\n";
+ open($HASH, "-|", "git", "log", "--reverse", "--no-merges",
"--no-mailmap", "--format=%H %s", $ARGV[0]) ||
+ die "$P: git log --reverse --no-merges --no-mailmap
--format='%H %s' $ARGV[0] failed - $!\n";
for my $line (<$HASH>) {
$line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
@@ -460,7 +460,7 @@ if ($chk_branch) {
"-c", "diff.renamelimit=0",
"-c", "diff.renames=True",
"-c", "diff.algorithm=histogram",
- "show",
+ "show", "--no-mailmap",
"--patch-with-stat", $hash) ||
die "$P: git show $hash - $!\n";
while (<$FILE>) {
--
2.39.2
- [PULL 0/9] Trivial patches for 2024-04-29, Michael Tokarev, 2024/04/29
- [PULL 7/9] target/loongarch/cpu.c: typo fix: expection, Michael Tokarev, 2024/04/29
- [PULL 1/9] target/i386/cpu: Remove "x86" prefix from the CPU list, Michael Tokarev, 2024/04/29
- [PULL 4/9] scripts/checkpatch: Avoid author email mangled by qemu-*@nongnu.org, Michael Tokarev, 2024/04/29
- [PULL 6/9] backends/cryptodev-builtin: Fix local_error leaks, Michael Tokarev, 2024/04/29
- [PULL 2/9] target/s390x/cpu_models: Rework the output of "-cpu help", Michael Tokarev, 2024/04/29
- [PULL 3/9] target/ppc/cpu_init: Remove "PowerPC" prefix from the CPU list, Michael Tokarev, 2024/04/29
- [PULL 9/9] checkpatch.pl: forbid strerrorname_np(), Michael Tokarev, 2024/04/29
- [PULL 5/9] scripts/checkpatch: Do not use mailmap,
Michael Tokarev <=
- [PULL 8/9] target/riscv/kvm: remove sneaky strerrorname_np() instance, Michael Tokarev, 2024/04/29