git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multiple user.name and user.email (possible feature request)
@ 2010-04-18  9:12 Eli Barzilay
  2010-04-18 18:16 ` Steven Michalske
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Barzilay @ 2010-04-18  9:12 UTC (permalink / raw)
  To: git

Is there a way to have *no* default or some invalid default for the
name/email -- something that will make git refuse to create a commit?

For example, I'd be happy if I could put this in my global config:

  [user]
    name = "Eli Barzilay"
    email = "-"

and then have git barf at me when I try to commit with these settings,
since I prefer being forced to set the appropriate address for each
repository rather than deal with the alternative confusion (or just
accepting the limitations and always using the same name/email).

[When I tried to see if it's possible I was surprised to see that git
happily creates commits for "- <->" and even " <>".]

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-18 20:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-04-18 20:11         ` Eli Barzilay
2010-04-18 20:53           ` Eli Barzilay

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).