mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
a66b4c3da9
commit
d73c64a61c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user