git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: A Large Angry SCM <gitzilla@gmail.com>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org, torvalds@osdl.org
Subject: Re: What shall we do with the GECOS field again?
Date: Mon, 19 Sep 2005 10:30:42 -0400	[thread overview]
Message-ID: <432ECB92.5000505@gmail.com> (raw)
In-Reply-To: <20050919134838.GC2903@pasky.or.cz>

Petr Baudis wrote:
>   Hello,
> 
>   after today's another confrontation with angry mob of real-world
> Cogito users, I decided to revive the old discussion about what part of
> the GECOS field should be used to prefill GIT_*_NAME. Linus stated in
> <Pine.LNX.4.58.0504171636590.7211@ppc970.osdl.org> that he does not want
> to cut based on ',', because it might throw away the first name of gecos
> fields in the "Torvalds, Linus" name.
> 
>   Well, I have to say that from the GECOS fields I saw, none use that
> format, but a lot of them used the realname,phone,something,phone,...
> format. The other point is, that users usually do not expect their phone
> number to end up in their name information in GIT commits, which results
> in a very unpleasant surprise (doubly so due to the immutable GIT
> nature). Yes, they should check after the first commit if they are happy
> with everything, and yes, GECOS is world-readable and therefore they
> shouldn't put information they don't want to be public to it. Still they
> do and I think GIT shouldn't make them unpleasant surprises.
> 
>   So my proposal (patch will follow soon) is to cut everything after the
> first , or ; from the GECOS field. These are the usual delimiters used
> in the GECOS field, and hopefully this will prevent polluting the
> realname fields of commit headers with crap and surprising the users.
> In the (I think rather rare) situation of the "Baudis, Petr"-like GECOS
> fields, this will just result in only the surname being in the realname
> field, which seems to be much less harmful and comparably less evil to
> me. 
> 
>   Opinions?
> 

Petr,

Your view of GECOS field contents (formatting) does not match my 
experience. Many organizations, both large and small, have standards and 
requirements for the contents and formatting of information in the GECOS 
field. Saying that the user's name is first and a particular punctuation 
character SHALL be the standard cut point and everyone not happy with 
the results should explicitly set the Git environment variables is the 
wrong approach.

A better approach is to not use the GECOS field contents at all and 
force everyone the set the Git environment variables, AND/OR to include 
the what Git thinks the user's name name might be in the commit message 
template they're editing (like the file list).

  parent reply	other threads:[~2005-09-19 14:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19 13:48 What shall we do with the GECOS field again? Petr Baudis
2005-09-19 14:11 ` Kevin O'Riordan
2005-09-19 14:34   ` Matthias Urlichs
2005-09-19 14:30 ` A Large Angry SCM [this message]
2005-09-19 14:47   ` Matthias Urlichs
2005-09-19 16:16     ` A Large Angry SCM
2005-09-19 16:34       ` Petr Baudis
2005-09-19 16:06 ` Junio C Hamano
2005-09-19 16:16   ` Petr Baudis
2005-09-19 16:32   ` Linus Torvalds
2005-09-19 16:49     ` Junio C Hamano
2005-09-19 16:59       ` Linus Torvalds
2005-09-20  4:02         ` Ryan Anderson
2005-09-20  4:13           ` Linus Torvalds
2005-09-20  3:12       ` Horst von Brand
2005-09-20  6:30       ` Junio C Hamano
2005-09-19 16:32 ` Nikolai Weibull
2005-09-19 21:21   ` Nikolai Weibull
2005-09-20  7:10     ` Junio C Hamano
2005-09-20  1:53   ` Junio C Hamano
2005-09-20 10:31     ` Nikolai Weibull

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=432ECB92.5000505@gmail.com \
    --to=gitzilla@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    --cc=torvalds@osdl.org \
    /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).