# post-receive-email: about diff

3 messages from 2008-02-22 to 2008-02-23. Participants: Denis Shaposhnikov, Miklos Vajna, Bruno Cesar Ribas.
Thread: https://gitlist.dev/t/12259

## Denis Shaposhnikov, 2008-02-22 16:14

Subject: post-receive-email: about diff
Message-ID: <20080222191402.5f546aed@wizard.volgograd.ru>
URL: https://gitlist.dev/e/20080222191402.5f546aed%40wizard.volgograd.ru

```
Hello,

Does somebody has modifications for contrib/hooks/post-receive-email to
send a diff together with a log message in a email?

Thanks!

-- 
DSS5-RIPE DSS-RIPN mailto:dsh@wizard.volgograd.ru xmpp:dsh@vlink.ru
http://wizard.volgograd.ru/ 2:550/5068@fidonet 2:550/5069@fidonet

```

## Miklos Vajna, 2008-02-23 00:43

Subject: Re: post-receive-email: about diff
Message-ID: <20080223004308.GX31441@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080223004308.GX31441%40genesis.frugalware.org
In-Reply-To: <20080222191402.5f546aed@wizard.volgograd.ru>

```
On Fri, Feb 22, 2008 at 07:14:02PM +0300, Denis Shaposhnikov <dsh@wizard.volgograd.ru> wrote:
> Does somebody has modifications for contrib/hooks/post-receive-email to
> send a diff together with a log message in a email?

maybe this is something for you:

http://git.frugalware.org/gitweb/gitweb.cgi?p=git-hooks.git;a=tree;f=sendmail;hb=HEAD

it sends one email / commit, including the full diff.

- VMiklos

```

## Bruno Cesar Ribas, 2008-02-23 02:37

Subject: Re: post-receive-email: about diff
Message-ID: <20080223023749.GA5107@c3sl.ufpr.br>
URL: https://gitlist.dev/e/20080223023749.GA5107%40c3sl.ufpr.br
In-Reply-To: <20080223004308.GX31441@genesis.frugalware.org>

```
On Fri, Feb 22, 2008 at 07:14:02PM +0300, Denis Shaposhnikov <dsh@wizard.volgograd.ru> wrote:
> Does somebody has modifications for contrib/hooks/post-receive-email to
> send a diff together with a log message in a email?

Indeed I have =)
Check here[1] if might help you

This is the modified version I am using to send logs. It does not send diff
like patchs, all commits in one mail. 
And modified it to use last committer Name and email as From: , as I use
ssh_acl[2] to control repository acl instead of managing users and groups

Hope helped a little bit,

Ribas

[1]www.inf.ufpr.br/ribas/misc/post-receive-email
[2]http://www.inf.ufpr.br/ribas/ssh_acl.html
-- 
Bruno Ribas - ribas@c3sl.ufpr.br
http://web.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br 

```
