aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-02-07 13:37:37 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-02-07 13:38:52 +0100
commite7a83118ea3f6a2d1c5e90870c223a1d2fe001ed (patch)
treec2a77ed7c34d1048cbce8ec49447990d82c0a866
parente5ba06ff5d13b40cd840afe83ec63e38fa11c3c2 (diff)
downloadcalcurse-e7a83118ea3f6a2d1c5e90870c223a1d2fe001ed.tar.gz
calcurse-e7a83118ea3f6a2d1c5e90870c223a1d2fe001ed.zip
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>
-rwxr-xr-xcontrib/caldav/hooks/post-sync2
-rwxr-xr-xcontrib/hooks/post-save2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/caldav/hooks/post-sync b/contrib/caldav/hooks/post-sync
index 94b6ed3..c119ba7 100755
--- a/contrib/caldav/hooks/post-sync
+++ b/contrib/caldav/hooks/post-sync
@@ -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
diff --git a/contrib/hooks/post-save b/contrib/hooks/post-save
index e75ce1e..574a721 100755
--- a/contrib/hooks/post-save
+++ b/contrib/hooks/post-save
@@ -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