Re: What is missing from Git v2.0
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Apr 25, 2014, 06:59 UTC
- Message-ID
- <vpqa9b9rj1w.fsf@anie.imag.fr>
- In-Reply-To
- <20140424154717.GB7531@thunk.org>
tytso@mit.edu writes:
Show 15 quoted lines
> On Thu, Apr 24, 2014 at 05:00:13PM +0200, Stefan Beller wrote: >> > I don't even think we need to query the user to fill out all of the >> > fields. We can prepopulate a lot of the fields (name, e-mail address, >> > etc.) from OS specific defaults that are available on most systems --- >> > specifically, the default values we would use the name and e-mail >> > address are not specified in a config file. >> >> Please don't. Or you end up again with Commiters like sb@localhost, >> sbeller@(None) or alike. I mean it's just one question once you setup >> a new computer, so I'd really like to see that question and then >> answer myself (at university/employer I might put in another email >> address than at home anyway, and I'm sure my boxes have no sane >> defaults) > > But that's no worse than what we have today.
It is. Currently, Git displays a very big and scary warning when you use commit and Git had to guess your identity.
If you explicitly fill-in the config file with guessed values, then Git will have no way to know if the config values are real or guessed.
OTOH, a prompt with a default value (i.e "type 'return' to get the default") would make sense.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/