From d73c64a61c5604b534b43e28a67cbe17c0fbbb3e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 12 Mar 2024 11:14:59 +1000 Subject: [PATCH] check-style: Force the default prefix in git diff Our match statements rely on the `b/` prefix so let's make sure we definitely get that one (i.e. undo diff.noprefix). Part-of: --- check-style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-style.py b/check-style.py index 091f59bcb..5862e9b80 100755 --- a/check-style.py +++ b/check-style.py @@ -12,7 +12,7 @@ uncrustify_cfg = 'tools/uncrustify.cfg' def run_diff(sha): proc = subprocess.run( - ["git", "diff", "-U0", "--function-context", sha, "HEAD"], + ["git", "diff", "-U0", "--function-context", "--default-prefix", sha, "HEAD"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="utf-8",