From 686439ce8519ef1d28a6bfd1b82b004f0eab5845 Mon Sep 17 00:00:00 2001 From: Charles-Axel Dein Date: Wed, 20 Sep 2017 15:33:52 +0200 Subject: [PATCH] Add git hooks --- .git_hooks/install_hooks.sh | 3 +++ .git_hooks/pre-commit | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 .git_hooks/install_hooks.sh create mode 100755 .git_hooks/pre-commit diff --git a/.git_hooks/install_hooks.sh b/.git_hooks/install_hooks.sh new file mode 100755 index 0000000..1bbc7e6 --- /dev/null +++ b/.git_hooks/install_hooks.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +ln -s ./../../.git_hooks/pre-commit .git/hooks/pre-commit diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit new file mode 100755 index 0000000..287c1a7 --- /dev/null +++ b/.git_hooks/pre-commit @@ -0,0 +1,3 @@ +#!/bin/sh + +doctoc --title "# Table of Contents" .