diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2019-09-04 19:09:37 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2019-09-04 19:16:45 +0200 |
| commit | 1637369b5a96f09e909dd6a966a5e6fc8a0ea692 (patch) | |
| tree | 6c1b2194500438c34ba8fffe43b5882ec0a78493 /hooks/post-commit | |
| parent | c278804b8c31f1d667415b9573a1aaa0d3c3d89f (diff) | |
| download | memory-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
Diffstat (limited to 'hooks/post-commit')
| -rwxr-xr-x | hooks/post-commit | 19 |
1 files changed, 0 insertions, 19 deletions
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 |
