diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e36d6346f9a7ae3356817771eb0d1b3c678d0d59..c15161ed18d29e664ee3cf8272672d7334e61bf9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,5 +4,12 @@ repos: hooks: - id: trailing-whitespace args: [--markdown-linebreak-ext=md, --markdown-linebreak-ext=pandoc] +- repo: local + hooks: + - id: git-diff-check + name: git-diff-check + entry: git diff --check --cached -- ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts' + language: system + stages: [commit, manual] exclude: 'ThirdParty/*|Tests/Data/*'