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

Re: Multiple user.name and user.email (possible feature request)

From
Jeff King <peff@peff.net>
Date
Apr 18, 2010, 18:55 UTC
Message-ID
<20100418185519.GA14331@coredump.intra.peff.net>
In-Reply-To
<r2wfabb9a1e1004181143o7ebe2cf1t883ee4a12ba29a24@mail.gmail.com>
On Sun, Apr 18, 2010 at 08:43:11PM +0200, Sverre Rabbelier wrote:
Show 6 quoted lines
> On Sun, Apr 18, 2010 at 20:37, Jeff King <peff@peff.net> wrote:
> > So I expect that will serve Eli's purpose.
> 
> If it does not, would a pre-commit hook work? If he sets some
> recognizable string (such as not setting it) as email and install a
> hook that barfs if it sees that?

Yeah, that could work. It would do what he wants, but he would have to have the hook set up. Which means he either needs to remember to configure it in each repository (at which point he could just remember to configure his identity), or he needs to point to a special init template directory with the hook.

I think setting init.templatedir or GIT_TEMPLATE_DIR in the environment would accomplish the latter.

-Peff
Previous: Sverre RabbelierNext: Eli Barzilay
Message 5 of 7 in “Multiple user.name and user.email (possible feature request)”
  1. Eli BarzilayApr 18, 2010
  2. Steven MichalskeApr 18, 2010
  3. Jeff KingApr 18, 2010
  4. Sverre RabbelierApr 18, 2010
  5. Jeff KingApr 18, 2010
  6. Eli BarzilayApr 18, 2010
  7. Eli BarzilayApr 18, 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.