[gst-devel] git email hook

Felipe Contreras felipe.contreras at gmail.com
Wed Feb 4 22:05:12 CET 2009


On Tue, Feb 3, 2009 at 2:50 PM, Felipe Contreras
<felipe.contreras at gmail.com> wrote:
> Hi,
>
> It looks like I'm not the only one that thinks the example git email
> hook sucks so I asked around there seems to be a much better
> alternative:
>
> git-notify:
> http://source.winehq.org/git/tools.git/?a=blob;f=git-notify;hb=HEAD

I've looked into this and modified the script so it works with cgit
and it seems to work fine.

If for some reason a push contains too many commits instead of sending
hundreds of e-mails it can send one big e-mail with a short
description of all the commits. The limit of number e-mails to send
separately can be configured.

Also, it includes the diff by default, and if the diff is too big then
it puts the diff url instead. The size of the diff is configurable
too.

I'm attaching my modified script and I'll send an example e-mail soon.

-- 
Felipe Contreras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: post-receive
Type: application/octet-stream
Size: 7177 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090204/cba638ee/attachment.obj>


More information about the gstreamer-devel mailing list