summaryrefslogblamecommitdiffstats
path: root/contrib/hooks/post-save-commit.sh
blob: d68461a0ccf389925e00e41ffc789f11065b93b1 (plain) (tree)
1
2
3
4
5
6
7
8
9
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