From: Christian Couder <chriscool@tuxfamily.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Heikki Orsila <shdl@zakalwe.fi>,
Heikki Orsila <heikki.orsila@iki.fi>,
git@vger.kernel.org
Subject: Re: [PATCH] Replace "git-" with "git " in *.[ch] comments and notifications
Date: Sat, 30 Aug 2008 13:29:46 +0200 [thread overview]
Message-ID: <200808301329.46226.chriscool@tuxfamily.org> (raw)
In-Reply-To: <7vr6872qv1.fsf@gitster.siamese.dyndns.org>
Le samedi 30 août 2008, Junio C Hamano a écrit :
> One thing you might be able to do would be to separate user visible
> strings and in-comment strings. Frankly, when a comment talks about a
> git subprogram, blindly replacing s/-/ / makes it _far worse_ and the
> resulting text is harder to read for git hackers (who are primary
> audiences of comments). E.g. taking one random example from your patch:
>
> diff --git a/builtin-init-db.c b/builtin-init-db.c
> index baf0d09..81aa822 100644
> --- a/builtin-init-db.c
> +++ b/builtin-init-db.c
> @@ -37,7 +37,7 @@ static void copy_templates_1(char *path, int baselen,
>
> /* Note: if ".git/hooks" file exists in the repository being
> * re-initialized, /etc/core-git/templates/hooks/update would
> - * cause git-init to fail here. I think this is sane but
> + * cause git init to fail here. I think this is sane but
> * it means that the set of templates we ship by default, along
> * with the way the namespace under .git/ is organized, should
> * be really carefully chosen.
>
> I do not think this is an improvement. We are talking about a single
> subprogram, not what the user types from the command line. Either of
> these two would be easier to read:
>
> ... would cause git-init to fail here...
> ... would cause "init" to fail here...
I think "git init" is even better, as "init" could be ambiguous.
> than:
>
> ... would cause git init to fail here...
>
> Among these three, I think the second one is the most readable. Perhaps
> dropping "git-" prefix when we are talking about a git subprogram, and
> quoting the word to make it stand out, could be a good approach , than
> replacing it with "git " prefix.
Regards,
Christian.
prev parent reply other threads:[~2008-08-30 11:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 23:47 [PATCH] Replace "git-" with "git " in *.[ch] comments and notifications Heikki Orsila
2008-08-30 0:56 ` Junio C Hamano
2008-08-30 1:15 ` Heikki Orsila
2008-08-30 2:12 ` Junio C Hamano
2008-08-30 9:54 ` Heikki Orsila
2008-08-30 10:08 ` Andreas Ericsson
2008-08-30 11:29 ` Christian Couder [this message]
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=200808301329.46226.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=heikki.orsila@iki.fi \
--cc=shdl@zakalwe.fi \
/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).