git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Re: [TRIVIAL] Documentation: merge: one <remote> is required

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 12, 2009, 10:19 UTC
Message-ID
<m31vnhpc5v.fsf@localhost.localdomain>
In-Reply-To
<7vy6ppbvdf.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 30 quoted lines
> Paul Bolle <pebolle@tiscali.nl> writes:
> 
>>> Shoudn't be 
>>> 
>>>    [-m <msg>] <remote> [<remote>...]
>>
>> No, since "<remote>..." means one or more instances of the "<remote>"
>> option.  
> 
> Does it really?
> 
> After you brought up this "one or more", I re-read the docs your patches
> touched, thinking that the author might have meant 'zero or more of A'
> with these '<A>...'  notation.
> 
> And I realized that they made perfect sense.
> 
> In general, you can write:
> 
> 	<command> ...
> 
> and read this as "The <command> can be followed by nothing or something
> (zero or more) of unspecified kind".  If <command> takes only one type of
> zero or more things, you can _clarify the ellipses_ by prefixing them with
> what kind of "stuff" you are talking about:
> 
> 	<command> <remote>...
> 
> and read this as "The <command> can be followed by nothing or something
> (zero or more) of <remote>s".
I would have thought that it makes more sense to have
  <something>...
for one or more, and
  [<something>... ]
for zero or more (optional one or more).
Documentation/DocumentationLanguage, anyone? ;-))))
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Nicolas Sebrecht
Message 5 of 9 in “[TRIVIAL] Documentation: merge: one <remote> is required”
  1. [TRIVIAL] Documentation: merge: one <remote> is requiredPaul Bolle, Aug 11, 2009
  2. Re: [TRIVIAL] Documentation: merge: one <remote> is requiredNicolas Sebrecht, Aug 11, 2009
  3. Paul BolleAug 11, 2009
  4. Junio C HamanoAug 12, 2009
  5. Jakub NarebskiAug 12, 2009
  6. Re: [TRIVIAL] Documentation: merge: one <remote> is requiredNicolas Sebrecht, Aug 12, 2009
  7. Paul BolleAug 12, 2009
  8. Junio C HamanoAug 12, 2009
  9. Paul BolleAug 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.