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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3658>
This commit is contained in:
Peter Hutterer 2024-03-12 11:14:59 +10:00
parent a66b4c3da9
commit d73c64a61c

View File

@ -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",