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

Re: Make author and committer available to pre-commit hook

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 6, 2010, 15:47 UTC
Message-ID
<7veifg4nom.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTilsdbJLHTY7cx2GeZg9ai_OZhmnEt0KdFjF81Pd@mail.gmail.com>
Gisle Aas <gisle@aas.no> writes:
> One question that arise is what format the date variables should have.
> Is the raw format (that is "1278400946 +0200") sensible?

I'd say so. We are doing this for scripts (hooks) and there is not much point doing machine-readable-to-human conversion they could do if they so choose.

> 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.

I imagine that you would be sending the date information just the same way you send the author information, so if your addition messes up the dates for "commit -C", wouldn't your original patch mess up the authorship information the same way?

In any case, this new feature won't be in 'master' nor 'next' while we are in pre-release freeze, so no need to rush.

Thanks.
Previous: Gisle Aas
Message 8 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.