From: Felipe C. <fel...@gm...> - 2009-02-04 21:06:21
|
On Tue, Feb 3, 2009 at 2:50 PM, Felipe Contreras <fel...@gm...> 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 |