Skip to content

Instantly share code, notes, and snippets.

@djui
Created December 15, 2010 15:04
Show Gist options
  • Save djui/742044 to your computer and use it in GitHub Desktop.
Save djui/742044 to your computer and use it in GitHub Desktop.
Formats the last commit and sends emails to all members in the pull request group using standard sendmail. I wrote this because the builtin 'git send-email' does only allow to send a patch file which I think is killer in a small team development.
[pull-request]
group = firstname@lastname.com firstname2@lastname2.com
[alias]
pull-request = "!branch=$(git name-rev --name-only HEAD) ; echo \"git pull $(git remote) $branch\n\n $(git log -1 HEAD --stat)\" | mail -s \"Pull request: $branch\" $(git config pull-request.group)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment