git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Henrie <alexhenrie24@gmail.com>
To: i.grok@comcast.net
Cc: "Git mailing list" <git@vger.kernel.org>,
	"Junio C Hamano" <gitster@pobox.com>,
	pclouds@gmail.com, "Matthieu Moy" <Matthieu.Moy@imag.fr>,
	madcoder@debian.org, barra_cuda@katamail.com, dpotapov@gmail.com,
	git@adamspiers.org, "Eric Sunshine" <sunshine@sunshineco.com>,
	"Michael Haggerty" <mhagger@alum.mit.edu>,
	"Jonathan Nieder" <jrnieder@gmail.com>,
	barkalow@iabervon.org, "Stefan Beller" <stefanbeller@gmail.com>,
	"Shawn Bohrer" <shawn.bohrer@gmail.com>,
	"Felipe Contreras" <felipe.contreras@gmail.com>,
	rhansen@bbn.com, "Petr Baudis" <pasky@ucw.cz>,
	s-beyer@gmx.net, c.shoemaker@cox.net, grnch@gmx.net,
	l.s.r@web.de, "Philip Oakley" <philipoakley@iee.org>,
	michal.kiedrowicz@gmail.com, "Carlos Martín Nieto" <cmn@elego.de>,
	"Ramkumar Ramachandra" <artagnon@gmail.com>,
	"Tay Ray Chuan" <rctay89@gmail.com>,
	"Stefan Näwe" <stefan.naewe@gmail.com>,
	pbonzini@redhat.com
Subject: Re: [PATCH v2] standardize usage info string format
Date: Tue, 13 Jan 2015 00:49:47 -0700	[thread overview]
Message-ID: <CAMMLpeReN_X5+RR8XrxRmt6HQo_Wikv8Ac_xG_mKxmiWdF7GrA@mail.gmail.com> (raw)
In-Reply-To: <1421135087-7284-1-git-send-email-alexhenrie24@gmail.com>

2015-01-12 22:29 GMT-07:00 Scott Schmit <i.grok@comcast.net>:
>
> On Wed, Jan 07, 2015 at 11:28:21PM -0700, Alex Henrie wrote:
> >
> > diff --git a/builtin/diff-files.c b/builtin/diff-files.c
> > index 9200069..1abeba6 100644
> > --- a/builtin/diff-files.c
> > +++ b/builtin/diff-files.c
> > @@ -11,7 +11,7 @@
> >  #include "submodule.h"
> >
> >  static const char diff_files_usage[] =
> > -"git diff-files [-q] [-0/-1/2/3 |-c|--cc] [<common diff options>] [<path>...]"
> > +"git diff-files [-q] [-0/-1/2/3 | -c | --cc] [<common-diff-options>] [<path>...]"
>                          ^^^^^^^^^
> This deserves cleanup too (the man page shows it as "[-0|-1|-2|-3|-c|--cc]").
>
> ...which makes me think the man pages need to be modified to match.

Patch v2 cleans up this usage string, but I think the man pages'
inconsistencies should be addressed separately. The man pages don't
appear to be translated, so their inconsistencies are unlikely to
cause translators any headaches.

> Also, it looks like items 1 & 4 are already codified in
> CodingGuidelines, but items 2 & 3 are new.  If we care to make the
> changes in 2 & 3, we should document the new conventions there.

Patch v2 modifies the documentation to match. By the way,
CodingGuidelines was inconsistent before. It had this example without
spaces:

   [(<rev>|<range>)...]

And this example with spaces:

   git remote set-head <name> (-a | -d | <branch>)

> Bike-shedding, I'm sure: I find "[-0|-1|-2|-3|-c|--cc]" more
> readable/logical than "[-0 | -1 | -2 | -3 | -c | --cc]" (which I admit
> seems counter-intuitive), but I wouldn't be surprised if opinions on
> that are about as split as the existing usage lines are :-).

I counted 29 usage strings that used spaces in this case, and 16 that
did not. Since spaces seem to be the more prevalent choice, I'd like
to use them consistently.

Thanks for the feedback!

-Alex

  reply	other threads:[~2015-01-13  7:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  7:44 [PATCH v2] standardize usage info string format Alex Henrie
2015-01-13  7:49 ` Alex Henrie [this message]
2015-01-13 22:45 ` Junio C Hamano
2015-01-14 12:40 ` Matthieu Moy
2015-01-14 17:31   ` Junio C Hamano

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=CAMMLpeReN_X5+RR8XrxRmt6HQo_Wikv8Ac_xG_mKxmiWdF7GrA@mail.gmail.com \
    --to=alexhenrie24@gmail.com \
    --cc=Matthieu.Moy@imag.fr \
    --cc=artagnon@gmail.com \
    --cc=barkalow@iabervon.org \
    --cc=barra_cuda@katamail.com \
    --cc=c.shoemaker@cox.net \
    --cc=cmn@elego.de \
    --cc=dpotapov@gmail.com \
    --cc=felipe.contreras@gmail.com \
    --cc=git@adamspiers.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=grnch@gmx.net \
    --cc=i.grok@comcast.net \
    --cc=jrnieder@gmail.com \
    --cc=l.s.r@web.de \
    --cc=madcoder@debian.org \
    --cc=mhagger@alum.mit.edu \
    --cc=michal.kiedrowicz@gmail.com \
    --cc=pasky@ucw.cz \
    --cc=pbonzini@redhat.com \
    --cc=pclouds@gmail.com \
    --cc=philipoakley@iee.org \
    --cc=rctay89@gmail.com \
    --cc=rhansen@bbn.com \
    --cc=s-beyer@gmx.net \
    --cc=shawn.bohrer@gmail.com \
    --cc=stefan.naewe@gmail.com \
    --cc=stefanbeller@gmail.com \
    --cc=sunshine@sunshineco.com \
    /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).