title: Git: post-receive email hook, including diff patches?
body: <p>I found a post-receive hook for Git after some googling that I use to e-mail all commits to a remote/shared repo. </p>
  
  <p>The problem with this <a href="http://git.kernel.org/?p=git/git.git;a=blob_plain;f=contrib/hooks/post-receive-email;h=41368950d6b29121089ee9239b8e07ece209a31e" rel="noreferrer">post-receive hook</a> is that it only has the capability to provide who made the commit, the log message, date, file(s) affected. I also want to see the affected file(s) generated patches in the e-mail to see what changes were made to the code. Subversion does this rather nicely.</p>
  
  <p>Does anyone have a solution for perhaps an env-variable that may be passed to the post-receive hook that does this? Or even better, an example that is already cooked up?</p>
  
  <p>Thanks all!</p>