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

Re: [PATCH 1/1] doc: correct doc for glob pathspec

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 8, 2025, 05:04 UTC
Message-ID
<xmqqikk3xog6.fsf@gitster.g>
In-Reply-To
<20250708024507.62386-2-rhanneken@pobox.com>
Russell Hanneken <rhanneken@pobox.com> writes:
Show 7 quoted lines
>   - A leading "`**`" followed by a slash means match in all
>     directories. For example, "`**/foo`" matches file or directory
> -   "`foo`" anywhere, the same as pattern "`foo`". "`**/foo/bar`"
> -   matches file or directory "`bar`" anywhere that is directly
> -   under directory "`foo`".
> +   "`foo`" anywhere. "`**/foo/bar`" matches file or directory "`bar`"
> +   anywhere that is directly under directory "`foo`".

So, the change is that the explanation that the pattern `foo` would match the same as what `**/foo` matches, i.e. a file or directory whose name is `foo`, either at the top-level or in any subdirectory.

Sounds correct.
Will queue.  Thanks.
Previous: Russell HannekenNext: Russell Hanneken
Message 3 of 5 in “doc: correct doc for glob pathspec”
  1. 0/1 doc: correct doc for glob pathspecRussell Hanneken, Jul 8, 2025
  2. 1/1 doc: correct doc for glob pathspecRussell Hanneken, Jul 8, 2025
  3. Junio C HamanoJul 8, 2025
  4. Russell HannekenJul 10, 2025
  5. Kristoffer HaugsbakkJul 21, 2025

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.