]> git.ipfire.org Git - thirdparty/git.git/commit
doc: correct doc for glob pathspec
authorRussell Hanneken <rhanneken@pobox.com>
Tue, 8 Jul 2025 02:45:07 +0000 (22:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Jul 2025 16:44:06 +0000 (09:44 -0700)
commitf4fa8a3687cf35c3ae8247aee7c1fb30fb7d6255
tree4a20be39c8feb48489942b4e05ebbaf9d6482c1b
parentf368df439b31b422169975cc3c95f7db6a46eada
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 <rhanneken@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/glossary-content.adoc