Offline: Re: git commit mail script
Jannis Pohlmann
jannis at xfce.org
Mon Jun 22 15:42:13 CEST 2009
On Mon, 22 Jun 2009 15:10:31 +0200
Nick Schermer <nickschermer at gmail.com> wrote:
> Maybe you've already looked at this:
>
> http://git.kernel.org/?p=git/git.git;a=blob;f=contrib/hooks/post-receive-email;h=2a66063e44e2ca8e1742b59e046b3702721086cb;hb=HEAD
>
> Looks like they loop for each revision in post-receive
They loop over oldrev/newrev pairs but if you push a lot of commits at
once, you'll only get one such oldrev/newrev pair in post-receive,
unless you push to different refs in which case you'll get one
oldrev/newrev pair for each ref you push to ... I guess. The script
only sends one mail per push, the subject looks like this
[SCM] foo branch, 1.0, updated. 1.12-10-gd463edd
or
[SCM] foo annotated tag, 1.13, created. 1.13
and the mails don't contain any diffs (ok, that's easy to fix but then
we'd end up with tons of commit diffs per mail).
So, when the comment in the script says "the rule is that (for branch
updates) each commit will appear on one email and one email only" it
actually doesn't mean there will be individual mails per commit.
- Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20090622/882f3ee2/attachment.pgp>
More information about the Xfce4-dev
mailing list