add an optional post-commit hook to send a commit email
parent
2a7e40c3d6
commit
e642e54912
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
HOSTNAME=`hostname --fqdn`
|
||||||
|
MAILTO={{ etckeeper_mailto }}
|
||||||
|
|
||||||
|
# (echo "Diffstat:" ; git show | diffstat ; echo -e "\nDiff:" ; \
|
||||||
|
# git show | filterdiff -x '**/*shadow*' -x '**/*.key' -x '**/private/*' ) \
|
||||||
|
# | mail -s "etckeeper $HOSTNAME" $MAILTO
|
||||||
|
|
||||||
|
git show --stat | mail -s "etckeeper $HOSTNAME" $MAILTO
|
Loading…
Reference in New Issue