Skip to content

Commit f4fa8a3

Browse files
rhannekengitster
authored andcommitted
doc: correct doc for glob pathspec
gitglossary documents Git pathspecs. One type of pathspec is the "glob" pathspec, prefixed with the magic word "glob". Regarding glob pathspecs, gitglossary says, '"**/foo" matches file or directory "foo" anywhere, the same as pattern "foo".' That last phrase ('the same as pattern "foo") is incorrect. "**/foo" and "foo" are not equivalent. "**/foo" matches foo anywhere, but "foo" does not. This change removes the incorrect phrase from the glob pathspec doc. Signed-off-by: Russell Hanneken <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f368df4 commit f4fa8a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/glossary-content.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,8 @@ full pathname may have special meaning:
418418

419419
- A leading "`**`" followed by a slash means match in all
420420
directories. For example, "`**/foo`" matches file or directory
421-
"`foo`" anywhere, the same as pattern "`foo`". "`**/foo/bar`"
422-
matches file or directory "`bar`" anywhere that is directly
423-
under directory "`foo`".
421+
"`foo`" anywhere. "`**/foo/bar`" matches file or directory "`bar`"
422+
anywhere that is directly under directory "`foo`".
424423

425424
- A trailing "`/**`" matches everything inside. For example,
426425
"`abc/**`" matches all files inside directory "abc", relative

0 commit comments

Comments
 (0)