#!/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

Add an example post-save hook
Add an example post-save hook

Signed-off-by: Lukas Fleischer <c9ca73f8336dcfb037ec2c2abf52d80a6847a5cd@calcurse.org>
