Do not put all files under version control in example hooks

Modify the Git hooks such they only add known data files to the index.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2016-02-07 13:37:37 +01:00
parent e5ba06ff5d
commit e7a83118ea
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
cd "$HOME"/.calcurse/
git add *
git add apts conf keys todo
if ! git diff-index --quiet --cached HEAD; then
git commit -m "Automatic commit by the post-sync hook"
fi

View File

@ -8,7 +8,7 @@ cd "$HOME"/.calcurse/
# Do not make commits when synchronizing with a CalDAV server.
[ -f caldav/lock ] && exit
git add *
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