From 9d9ec11979d0e358fcf60881b38599af4efd6da5 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 7 Aug 2019 13:34:39 +0200
Subject: [PATCH] [hook] Added git diff --check.

---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e36d6346f9a..c15161ed18d 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/*'
-- 
GitLab