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:
parent
e5ba06ff5d
commit
e7a83118ea
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
cd "$HOME"/.calcurse/
|
cd "$HOME"/.calcurse/
|
||||||
|
|
||||||
git add *
|
git add apts conf keys todo
|
||||||
if ! git diff-index --quiet --cached HEAD; then
|
if ! git diff-index --quiet --cached HEAD; then
|
||||||
git commit -m "Automatic commit by the post-sync hook"
|
git commit -m "Automatic commit by the post-sync hook"
|
||||||
fi
|
fi
|
||||||
|
@ -8,7 +8,7 @@ cd "$HOME"/.calcurse/
|
|||||||
# Do not make commits when synchronizing with a CalDAV server.
|
# Do not make commits when synchronizing with a CalDAV server.
|
||||||
[ -f caldav/lock ] && exit
|
[ -f caldav/lock ] && exit
|
||||||
|
|
||||||
git add *
|
git add apts conf keys todo
|
||||||
if ! git diff-index --quiet --cached HEAD; then
|
if ! git diff-index --quiet --cached HEAD; then
|
||||||
git commit -m "Automatic commit by the post-save hook"
|
git commit -m "Automatic commit by the post-save hook"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user