From: Gabor Dozsa Date: Thu, 2 Jun 2016 09:48:16 +0000 (+0100) Subject: style: respect per verifier ignores for git commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f23bd6b248d4fef32e625c794b6767edfb03e914;p=gem5.git style: respect per verifier ignores for git commit Change-Id: Id00379bdb17594e627ee49c077fb75f499ea550e Reviewed-by: Andreas Sandberg --- diff --git a/util/git-pre-commit.py b/util/git-pre-commit.py index 353850846..480bba1c9 100755 --- a/util/git-pre-commit.py +++ b/util/git-pre-commit.py @@ -75,7 +75,7 @@ for status, fname in git.status(filter="MA", cached=True): verifiers = [ v(ui, opts, base=repo_base) for v in all_verifiers ] for v in verifiers: - if v.check(fname, regions): + if not v.skip(fname) and v.check(fname, regions): failing_files.add(fname) if failing_files: