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

enhancement: support for author.email and author.name in "git config"

From
William Hubbs <williamh@gentoo.org>
Date
Dec 6, 2018, 18:17 UTC
Message-ID
<20181206181739.GB30045@whubbs1.gaikai.biz>
Hi all,

We are in a situation where we would like to use author information that is different from committer information when we commit to certain repositories.

Currently, it looks like there are two ways to do this, and I'm not sure how to make either of them work well.

There are the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment variables, but these would have to be set globally. Also, there is the --author command line switch for the "git commit" command, but this is easy to forget to use.

Is there something I'm missing?

If not, I would like to propose the addition of author.email and author.name settings to the git-config system.

Additionally you could add committer.name and committer.email, but the only reason I bring the committer variations up is consistency since I see you also have GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment variables.

Does anyone have any thoughts on this?

I don't think either of us is on the mailing list, so please keep us in CC's when you reply.

Thanks,
William
Next: Martin Ågren
Message 1 of 8 in “enhancement: support for author.email and author.name in "git config"”
  1. William HubbsDec 6, 2018
  2. Martin ÅgrenDec 6, 2018
  3. William HubbsDec 6, 2018
  4. Johannes SchindelinDec 6, 2018
  5. William HubbsDec 7, 2018
  6. Jonathan NiederDec 7, 2018
  7. William HubbsDec 13, 2018
  8. Jonathan NiederDec 13, 2018

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.