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

Re: Re: [RFC PATCH] hooks: add some defaults to support sane workflow to pre-commit

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Oct 20, 2009, 19:59 UTC
Message-ID
<20091020195922.GA1725@book.hvoigt.net>
In-Reply-To
<7v4opv4vjh.fsf@alter.siamese.dyndns.org>
On Mon, Oct 19, 2009 at 01:50:26AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Heiko Voigt <git-list@hvoigt.net> writes:
> 
> > It sometimes happens that you move to a new machine and forget to setup your
> > name and email address. To find this out after 10 commits can be quite
> > frustrating.
> 
> Doesn't env_hint[] kick in in fmt_ident() in such a case, though?

It is not want you usually want. You get <username>@<hostname> as the committer but if you are working on a workstation this is seldomly your email address. At least in my experience.

I would like this as a safeguard that you have done some basic setup before you create any commits.

cheers Heiko
Previous: Junio C Hamano
Message 10 of 10 in “hooks: add some defaults to support sane workflow to pre-commit”
  1. hooks: add some defaults to support sane workflow to pre-commitHeiko Voigt, Feb 20, 2009
  2. Wincent ColaiutaFeb 20, 2009
  3. Heiko VoigtFeb 21, 2009
  4. Thomas RastFeb 21, 2009
  5. Heiko VoigtFeb 21, 2009
  6. Jakub NarebskiFeb 21, 2009
  7. Heiko VoigtFeb 21, 2009
  8. Heiko VoigtFeb 23, 2009
  9. Junio C HamanoOct 19, 2009
  10. Heiko VoigtOct 20, 2009

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.