From: Junio C Hamano <gitster@pobox.com>
To: jidanni@jidanni.org
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Documentation/git-merge: at least one <remote> not two
Date: Thu, 01 Jan 2009 13:25:02 -0800 [thread overview]
Message-ID: <7vk59ehg7l.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <87d4f6vph7.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 02 Jan 2009 02:41:08 +0800")
jidanni@jidanni.org writes:
> Make SYNOPSIS match usage message
>
> Signed-off-by: jidanni <jidanni@jidanni.org>
> ---
> Documentation/git-merge.txt | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt
> index f7be584..a3ac828 100644
> --- a/Documentation/git-merge.txt
> +++ b/Documentation/git-merge.txt
> @@ -10,7 +10,7 @@ SYNOPSIS
> --------
> [verse]
> 'git merge' [-n] [--stat] [--no-commit] [--squash] [-s <strategy>]...
> - [-m <msg>] <remote> <remote>...
> + [-m <msg>] <remote>...
> 'git merge' <msg> HEAD <remote>...
The original uses ellipses for the first-class UI syntax as "zero or
more", while it means "one or more" in the description for the original
syntax, which is inconsistent, and you are matching them by making both
use "one or more" interpretation.
Two issues:
* Are there similar breakages like this in the documentation and the
usage text? It would be a good idea to make the ellipses to mean the
same thing everywhere, and a janitorial patch series that would fix
the "ellipses" breakage (and nothing else) may be a good thing to
have. But before going that route...
* Is it a good idea to standardize on "one or more" semantics? I suspect
we would rather want to standardize on "zero or more", because it would
be more natural to say:
$ git diff [--] <paths>...
to mean "You can give paths if you want to but you do not have to". If
ellipses meant "one or more", you have to say this instead:
$ git diff [--] [<paths>...]
While I prefer "zero or more" because I think it is more logical, if the
preparatory study for the first issue reveals that we use "one or more" a
lot more often, it might be easier to standardize on that interpretation.
Oh, you also need to give ellipses to the usage string for the original
syntax in builtin-merge.c to match SYNOPSIS and usage string.
Thanks.
next prev parent reply other threads:[~2009-01-01 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-01 18:41 [PATCH] Documentation/git-merge: at least one <remote> not two jidanni
2009-01-01 21:25 ` Junio C Hamano [this message]
2009-01-02 0:25 ` Sitaram Chamarty
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=7vk59ehg7l.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jidanni@jidanni.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).