blob: 574a72139e56d4e245e982b2bba5a75347d61623 (
plain) (
tree)
|
|
#!/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/
# Do not make commits when synchronizing with a CalDAV server.
[ -f caldav/lock ] && exit
git add apts conf keys todo
if ! git diff-index --quiet --cached HEAD; then
git commit -m "Automatic commit by the post-save hook"
fi
|