Add an example post-save hook
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
767214e4f1
commit
626139a0b8
10
contrib/post-save-commit.sh
Normal file
10
contrib/post-save-commit.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copy this file into ~/.calcurse/hooks/ and mark it executable to
|
||||
# automatically commit any changes to the calcurse data files using Git.
|
||||
|
||||
cd "$HOME"/.calcurse/
|
||||
git add *
|
||||
if ! git diff-index --quiet --cached HEAD; then
|
||||
git commit -m "Automatic commit by the post-save hook"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user