Re: git rev-list with --name-status?
- From
- skillzero@gmail.com <skillzero@gmail.com>
- Date
- Dec 25, 2008, 20:13 UTC
- Message-ID
- <2729632a0812251213h1de24995v9ad0a0df4e6967f8@mail.gmail.com>
- In-Reply-To
- <7vr63w84iy.fsf@gitster.siamese.dyndns.org>
On Thu, Dec 25, 2008 at 10:59 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> You seem to be referring to contrib/hooks/post-receive-email as "The > script that comes with git". It does have customization possibility > already implemented and documented: > > hooks.showrev > The shell command used to format each revision in the email, with > "%s" replaced with the commit id. Defaults to "git rev-list -1 > --pretty %s", displaying the commit id, author, date and log > message. To list full patches separated by a blank line, you > could set this to "git show -C %s; echo". > > ... > > I think you can use "git show --name-status %s; echo" instead, if you like > the --name-status output.
Thanks, that's perfect. I was using an older version of contrib/hooks/post-receive-email that didn't have hooks.showrev so I didn't realize it already had support for what I wanted.