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

Re: Can't figure out some sense from the git-commit-tree man page

From
Mike Hommey <mh@glandium.org>
Date
Aug 17, 2007, 16:56 UTC
Message-ID
<20070817165655.GA13891@glandium.org>
In-Reply-To
<Pine.LNX.4.64.0708171751360.20400@racer.site>
On Fri, Aug 17, 2007 at 05:52:52PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 25 quoted lines
> Hi,
> 
> On Fri, 17 Aug 2007, Mike Hommey wrote:
> 
> >   ?   committer name and email and the commit time.
> >   If not provided, "git-commit-tree" uses your name, hostname and domain to
> >   provide author and committer info. This can be overridden by either
> >   .git/config file, or using the following environment variables.
> >   (...)
> > 
> > The "If not provided" part doesn't make sense.
> 
> It does, if you know how to specify the committer info.  Which the man 
> page specifies how to provide:
> 
> This can be overridden by either `.git/config` file, or using the 
> following environment variables.
> 
>         GIT_AUTHOR_NAME
>         GIT_AUTHOR_EMAIL
>         GIT_AUTHOR_DATE
>         GIT_COMMITTER_NAME
>         GIT_COMMITTER_EMAIL
>         GIT_COMMITTER_DATE
>         EMAIL

This is exactly where the man page doesn't make sense to me. It tells you that if you don't provide committer name, etc. it uses your name, hostname, etc., and you can override this with .git/config or the environment variable you listed.

So where were you supposed to provide these informations in the first place ?

Mike
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 11 in “Can't figure out some sense from the git-commit-tree man page”
  1. Mike HommeyAug 17, 2007
  2. Johannes SchindelinAug 17, 2007
  3. Mike HommeyAug 17, 2007
  4. Johannes SchindelinAug 17, 2007
  5. Jakub NarebskiAug 17, 2007
  6. J. Bruce FieldsAug 17, 2007
  7. Mike HommeyAug 17, 2007
  8. J. Bruce FieldsAug 17, 2007
  9. Clarify commit-tree documentationMike Hommey, Aug 17, 2007
  10. Junio C HamanoAug 17, 2007
  11. Daniel HulmeAug 17, 2007

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.