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

Re: git-reset man page

From
KMKrzysztof Mazur <krzysiek@podlesie.net>
Date
Nov 18, 2012, 17:48 UTC
Message-ID
<20121118174859.GA29052@shrek.podlesie.net>
In-Reply-To
<CAM9Z-nkon5ZtPuqxL0HZPr1es9DSpLA+70++hYpTR4D7WTxbUA@mail.gmail.com>
On Sun, Nov 18, 2012 at 11:55:09AM -0500, Drew Northup wrote:
Show 9 quoted lines
> 
> > So we should always use "<path>" for exact path, and "<pathspec>" for
> > pathspecs patterns as defined in gitglossary. I think it's better
> > to avoid "<paths>" and always use "<path>..." or "<pathspec>..."
> 
> I suspect that the only reason why the differentiation between
> "<path>" and "<paths>" happened is because there may be some places
> where it was seen that a _list of paths_ was acceptable (which isn't a
> pathspec, as it isn't a search expression) and other places where
<paths> is usually used for a list of <pathspec>, not just a list of <path>.
Show 5 quoted lines
> _only_ a single path was acceptable. Should that fail to be the case
> then there would be a good argument for changing the affected
> instances of "<paths>" to "<path>" in the documentation. (I know of no
> other good way to pluralize "<path>" myself.)
> 
I think it's best to just add "...":

<path> for single exact path, <path>... for a list of exact paths, <pathspec> for single pathspec, <pathspec>... for a list of pathspecs.

Krzysiek
Previous: Drew Northup
Message 6 of 6 in “git-reset man page”
  1. Angelo BorsottiNov 10, 2012
  2. Krzysztof MazurNov 10, 2012
  3. Junio C HamanoNov 10, 2012
  4. Krzysztof MazurNov 10, 2012
  5. Drew NorthupNov 18, 2012
  6. Krzysztof MazurNov 18, 2012

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.