Re: What shall we do with the GECOS field again?
- From
Matthias Urlichs <smurf@smurf.noris.de>
- Date
- Sep 19, 2005, 14:34 UTC
- Message-ID
- <pan.2005.09.19.14.34.50.221824@smurf.noris.de>
- In-Reply-To
- <20050919141106.GA31983@compsoc.com>
Hi, Kevin O'Riordan wrote:
> In case this hasn't been suggested, how about cutting on "," but taking > the first and second fields instead of just the first, and then > discarding the second if it contains numbers (or is empty, or whatever) ?
... or contains a room name or a street or ... Bah.
*If* we want heuristics, then I'd check for the presence of more than one semicolon or comma (semicolon to be checked first). Yes => use the part before the semicolon or comma. No => use the whole field.
However, I'd argue that we don't want heuristics, we should cut at the first delimiter, and anybody who wants to change their commit info gets to set an envvar.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
I've got a patent pending on swallowing, oxidation, and chewing gum.