From: Jeff King Date: Sun, 18 Apr 2010 18:55:19 GMT Subject: Re: Multiple user.name and user.email (possible feature request) Message-ID: <20100418185519.GA14331@coredump.intra.peff.net> In-Reply-To: On Sun, Apr 18, 2010 at 08:43:11PM +0200, Sverre Rabbelier wrote: > On Sun, Apr 18, 2010 at 20:37, Jeff King 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