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

Re: [PATCH] doc: improve usage string in MyFirstContribution

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 21, 2019, 19:00 UTC
Message-ID
<CAPig+cQJRwfEnsPwY=Cwwy2zPU+=rd+5XJckh7=iEjsb2h1A7g@mail.gmail.com>
In-Reply-To
<xmqqmuiakgaq.fsf@gitster-ct.c.googlers.com>
On Fri, Jun 21, 2019 at 1:19 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> Eric Sunshine <sunshine@sunshineco.com> writes:
> > On Fri, Jun 21, 2019 at 6:43 AM Christian Couder
> > <christian.couder@gmail.com> wrote:
> >> On Thu, Jun 20, 2019 at 11:29 PM Emily Shaffer <emilyshaffer@google.com> wrote:
> >> > It doesn't require 1 or more args - you can run it with no args. So it
> >> > might be better suited to state the args as optional:
> >> >
> >> >   'git psuh [arg]...'
> >>
> >> Yeah sure, I will will resend soon with such changes.
> >
> > More correct would be "git psuh [<arg>]".
>
> I think this takes 0 or more, not 0 or 1, so "git psuh [<arg>...]",
> no?

I hadn't read the tutorial, but looking at it now, I see that it indeed takes zero or more, so "git psuh [<arg>...]" would be best.

Previous: Junio C Hamano
Message 6 of 6 in “doc: improve usage string in MyFirstContribution”
  1. doc: improve usage string in MyFirstContributionChristian Couder, Jun 19, 2019
  2. Emily ShafferJun 20, 2019
  3. Christian CouderJun 21, 2019
  4. Eric SunshineJun 21, 2019
  5. Junio C HamanoJun 21, 2019
  6. Eric SunshineJun 21, 2019

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.