blob: 94b6ed3bc00fe1f27e514367297b71da3c223eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
#
# Copy this file into ~/.calcurse/caldav/hooks/ and mark it executable to
# automatically commit changes after syncing using Git.
cd "$HOME"/.calcurse/
git add *
if ! git diff-index --quiet --cached HEAD; then
git commit -m "Automatic commit by the post-sync hook"
fi
|