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

Re: [PATCH] doc: Remove explanation of "--" from several man pages

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Nov 13, 2017, 09:56 UTC
Message-ID
<alpine.LFD.2.21.1711130450570.11083@localhost.localdomain>
In-Reply-To
<xmqqlgja8q74.fsf@gitster.mtv.corp.google.com>
On Mon, 13 Nov 2017, Junio C Hamano wrote:
Show 26 quoted lines
> "Robert P. J. Day" <rpjday@crashcourse.ca> writes:
>
> >> > diff --git a/Documentation/git-check-attr.txt b/Documentation/git-check-attr.txt
> >> > index aa3b2bf2f..0ae2523e0 100644
> >> > --- a/Documentation/git-check-attr.txt
> >> > +++ b/Documentation/git-check-attr.txt
> >> > @@ -36,10 +36,6 @@ OPTIONS
> >> >  	If `--stdin` is also given, input paths are separated
> >> >  	with a NUL character instead of a linefeed character.
> >> >
> >> > -\--::
> >> > -	Interpret all preceding arguments as attributes and all following
> >> > -	arguments as path names.
> >> > -
> >>
> >> This also has a similar issue.  "--" here is not between revs and
> >> pathspecs but is between attributes and pathspecs.
> >
> >   that can already be seen in the SYNOPSIS for that command, it does
> > not require further explanation:
> >
> >   SYNOPSIS
> >        git check-attr [-a | --all | attr...] [--] pathname...
>
> Nah.  With the same logic you could say --all is already on synopsis
> and no need for explanation.
  uh, that's not what i meant. what i *meant* was that the purpose of
"--" was already in the SYNOPSIS (as it appears to be in *all* man
pages) to visually show that it is a separator between the first part
of the command and possible pathnames. i was *not* suggesting that, if
something is in the SYNOPSIS, there is no further need to explain it.
  anyway, i can see this is a losing battle so i'll let it go.
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Previous: Junio C Hamano
Message 5 of 5 in “doc: Remove explanation of "--" from several man pages”
  1. doc: Remove explanation of "--" from several man pagesRobert P. J. Day, Nov 12, 2017
  2. Junio C HamanoNov 13, 2017
  3. Robert P. J. DayNov 13, 2017
  4. Junio C HamanoNov 13, 2017
  5. Robert P. J. DayNov 13, 2017

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.