commit 9dfca25455dbac7fad721bac44daa9d9a149475a
parent d1ae8a072d5de600d24409ed1c02c6fdf95b566c
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Thu, 12 Mar 2020 22:40:41 +0100
Make hooks easier to setup & maintain
By giving them meaningful names and adding a master script to call
them all.
Diffstat:
5 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/repo/hooks/check-links.sh b/repo/hooks/check-links.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo "Checking for unresolved links…"
+
+! grep -Er '^\[.*\]:.*TODO.*'
diff --git a/repo/hooks/pre-push b/repo/hooks/pre-push
@@ -0,0 +1,3 @@
+#/bin/bash
+
+./repo/hooks/check-links.sh
diff --git a/repo/hooks/setup.sh b/repo/hooks/setup.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+git config --local core.hooksPath repo/hooks
diff --git a/scripts/update-count.sh b/repo/update-count.sh
diff --git a/scripts/pre-push b/scripts/pre-push
@@ -1,5 +0,0 @@
-#/bin/bash
-
-echo "Checking for unresolved links…"
-
-! grep -Er '^\[.*\]:.*TODO.*'