From 1637369b5a96f09e909dd6a966a5e6fc8a0ea692 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 4 Sep 2019 19:09:37 +0200 Subject: Remove word-count hook Makes it impossible to rebase anything[^1]. Someday I'll run update-count.sh as a pre-processing step for this website; in the meantime, just get rid of it. [^1]: Well, not *impossible*, just annoying. For every commit, the rebase must be paused and the conflict resolved with: $ git checkout --theirs -- README.md $ ./update-count.sh $ git add README.md $ git rebase --continue --- hooks/post-commit | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 hooks/post-commit (limited to 'hooks') diff --git a/hooks/post-commit b/hooks/post-commit deleted file mode 100755 index e84601e..0000000 --- a/hooks/post-commit +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -if [ -f .UPDATING_COUNT ] -then - exit 0 -fi - -echo "Checking word count…" - -./update-count.sh - -if git diff --quiet --exit-code -- README.md -then - exit 0 -fi - -touch .UPDATING_COUNT -git commit --amend --no-edit -- README.md -rm .UPDATING_COUNT -- cgit v1.2.3