From: Jeff King <peff@peff.net>
To: Sverre Rabbelier <srabbelier@gmail.com>
Cc: Steven Michalske <smichalske@gmail.com>,
Eli Barzilay <eli@barzilay.org>,
git@vger.kernel.org
Subject: Re: Multiple user.name and user.email (possible feature request)
Date: Sun, 18 Apr 2010 14:55:19 -0400 [thread overview]
Message-ID: <20100418185519.GA14331@coredump.intra.peff.net> (raw)
In-Reply-To: <r2wfabb9a1e1004181143o7ebe2cf1t883ee4a12ba29a24@mail.gmail.com>
On Sun, Apr 18, 2010 at 08:43:11PM +0200, Sverre Rabbelier wrote:
> 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
next prev parent reply other threads:[~2010-04-18 18:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 9:12 Multiple user.name and user.email (possible feature request) Eli Barzilay
2010-04-18 18:16 ` Steven Michalske
2010-04-18 18:37 ` Jeff King
2010-04-18 18:43 ` Sverre Rabbelier
2010-04-18 18:55 ` Jeff King [this message]
2010-04-18 20:11 ` Eli Barzilay
2010-04-18 20:53 ` Eli Barzilay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100418185519.GA14331@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=eli@barzilay.org \
--cc=git@vger.kernel.org \
--cc=smichalske@gmail.com \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).