summaryrefslogtreecommitdiff
path: root/contrib/hooks/post-save
AgeCommit message (Collapse)Author
2016-02-08Improve example hooksLukas Fleischer
The post-save and post-sync hooks now automatically detect whether the data directory contains a .git/ directory and skip the commit creation process if it does not. The post-save hook and the new pre-load hook now also run calcurse-caldav in the background if that script is available and the data directory contains a caldav/ directory. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2016-02-07Do not put all files under version control in example hooksLukas Fleischer
Modify the Git hooks such they only add known data files to the index. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2016-02-07calcurse-caldav: Add hook supportLukas Fleischer
Introduce pre-sync and post-sync hooks which need to be located under ~/.calcurse/caldav/hooks/ and are executed before/after synchronization with a CalDAV server. Also, add an example post-sync hook and change the example post-save hook such that it does not create tiny commits during synchronization. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2016-02-07Fix file name of the example hookLukas Fleischer
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>