Re: Make author and committer available to pre-commit hook
- From
Gisle Aas <gisle@aas.no>
- Date
- Jul 6, 2010, 09:22 UTC
- Message-ID
- <AANLkTilsdbJLHTY7cx2GeZg9ai_OZhmnEt0KdFjF81Pd@mail.gmail.com>
- In-Reply-To
- <20100706072947.GB3567@sigill.intra.peff.net>
On Tue, Jul 6, 2010 at 09:29, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> On Mon, Jul 05, 2010 at 08:04:39PM -0700, Junio C Hamano wrote: > >> I wonder if we should also make author/committer dates available via the >> same mechanism. > > I don't see why not. It is a trivial amount of code, and I can see at > least author date being useful.
One question that arise is what format the date variables should have. Is the raw format (that is "1278400946 +0200") sensible?
I've created a patch for this locally, but it has some side effects in messing up the dates stored by 'git commit -C...' which I have not figured out yet; and now I need to get some other stuff done. It might take some days until a revised patch is ready. Feel free to contribute your "trivial amount of code" before I get around to it :-)
Regards, Gisle