Re: [PATCHv2 14/15] ident: trim whitespace from default name/email
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 22, 2012, 17:21 UTC
- Message-ID
- <7vehqc5dxt.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120522171204.GB11600@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 20 quoted lines
> On Tue, May 22, 2012 at 09:55:19AM -0700, Junio C Hamano wrote: > >> Jeff King <peff@peff.net> writes: >> >> > ... Any other value >> > comes from a config file, where we will have cleaned up >> > accidental whitespace already. >> >> Are you referring to the behaviour of the config parser that removes >> leading and trailing whitespaces when reading an unquoted string value? > > Yes, exactly. > >> If the user really wanted to have trailing whitespaces by quoting, we >> would let it pass, in other words; it probably is a reasonable behaviour. > > Right, that's why I said "accidental" above; you can still do it, but I > think you'd have to be really trying. But I really wonder if we should > be blocking that, too. fmt_ident will drop it anyway, so this is really > only for code paths that want to use the email directly.
Thanks.
Show 6 quoted lines
>> Other than that single small "hrm...", the entire series was a pleasant >> read. Thanks. > > Thanks. I'm happy to update this patch if we want it to be more > paranoid, or I can update the commit message if it just needs explained > better.
Neither is necessary. I was just puzzled a bit and was worried if I was missing something.