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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 18, 2010 at 08:43:11PM +0200, Sverre Rabbelier wrote:

> On Sun, Apr 18, 2010 at 20:37, Jeff King <peff@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]