3 # An example hook script to mail out commit update information.
6 # (1) change the recipient e-mail address
7 # (2) make this file executable by "chmod +x update".
10 recipient
="commit-list@mydomain.xz"
12 if expr "$2" : '0*$' >/dev
/null
14 echo "Created a new ref, with the following commits:"
15 git-rev-list
--pretty "$2"
18 git-rev-list
--pretty "$3" "^$2"
20 mail -s "Changes to ref $1" "$recipient"