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.