git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Jeff KingNext: Junio C Hamano
Message 7 of 8 in “Make author and committer available to pre-commit hook”
  1. Gisle AasJul 5, 2010
  2. Jeff KingJul 5, 2010
  3. Gisle AasJul 5, 2010
  4. Ævar Arnfjörð BjarmasonJul 5, 2010
  5. Junio C HamanoJul 6, 2010
  6. Jeff KingJul 6, 2010
  7. Gisle AasJul 6, 2010
  8. Junio C HamanoJul 6, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.