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 --- README.md | 2 +- hooks/post-commit | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100755 hooks/post-commit diff --git a/README.md b/README.md index c04712b..f1fb0e1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Peniblec's Memory Leaks -## still reachable: 10651 words in 23 pages +## still reachable: lots of words in many pages Hi! I am a software engineer interested in [a bunch of things]. 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