8000 [Finder] Document recursive .gitignore files support · symfony/symfony-docs@412fac9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 412fac9

Browse files
committed
[Finder] Document recursive .gitignore files support
1 parent 77b7f55 commit 412fac9

File 8000 tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/finder.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,17 @@ default when looking for files and directories, but you can change this with the
141141

142142
$finder->ignoreVCS(false);
143143

144-
If the search directory contains a ``.gitignore`` file, you can reuse those
145-
rules to exclude files and directories from the results with the
144+
If the search directory and its subdirectories contain ``.gitignore`` files, you
145+
can reuse those rules to exclude files and directories from the results with the
146146
:method:`Symfony\\Component\\Finder\\Finder::ignoreVCSIgnored` method::
147147

148148
// excludes files/directories matching the .gitignore patterns
149149
$finder->ignoreVCSIgnored(true);
150150

151+
.. versionadded:: 5.4
152+
153+
``.gitignore`` files recursive support was introduced in Symfony 5.4.
154+
151155
File Name
152156
~~~~~~~~~
153157

0 commit comments

Comments
 (0)
0