summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2019-09-04 19:09:37 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2019-09-04 19:16:45 +0200
commit1637369b5a96f09e909dd6a966a5e6fc8a0ea692 (patch)
tree6c1b2194500438c34ba8fffe43b5882ec0a78493
parentc278804b8c31f1d667415b9573a1aaa0d3c3d89f (diff)
downloadmemory-leaks-1637369b5a96f09e909dd6a966a5e6fc8a0ea692.tar.xz
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
-rw-r--r--README.md2
-rwxr-xr-xhooks/post-commit19
2 files changed, 1 insertions, 20 deletions
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