lh-l4v/misc/git-commit-emails
David Greenaway 4ef7cf0966 git-commit-email: Reduce wait time after sending an email.
The sleep time helps to avoid overloading servers if a bug causes the
script to send emails in an infinite loop. Now that the script has been
running a while and we have a little more confidence in it, we reduce
the timeout to speed up deliveries of email.
2014-12-16 13:11:23 +11:00
..
README misc: Add commit email script. 2014-12-16 13:09:38 +11:00
commit-email.py git-commit-email: Reduce wait time after sending an email. 2014-12-16 13:11:23 +11:00

README

This script takes a git repository, fetches any remote patches on the
repository, and then shoots out an email describing any new commits.

This should either be setup in cron to poll a remote repository, or---better
still---be executed by another script when a push event occurs.

One possible way or running it is as follows:

    ./commit-email.py \
        --repo project_name \
        --to mailing.list@example.com \
        --from mailing.list@example.com \
        ./path/to/repo