8000 Minor reword · symfony/symfony-docs@4f475d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f475d6

Browse files
committed
Minor reword
1 parent 3da306e commit 4f475d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/finder.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ can reuse those rules to exclude files and directories from the results with the
148148
// excludes files/directories matching the .gitignore patterns
149149
$finder->ignoreVCSIgnored(true);
150150

151-
Rules from higher levels will be overridden by those in lower levels.
151+
The rules of a directory always override the rules of its parent directories.
152152

153153
.. note::
154154

155-
Only ``.gitignore`` files from search directories and their descendants are
156-
read. Files from parent directories are ignored. To be consistent with Git
157-
behavior, you should explicitly search from the Git repository root.
155+
Git looks for ``.gitignore`` files starting from the repository root directory.
156+
Symfony's Finder behavior is different and it looks for ``.gitignore`` files
157+
starting from the directory used to search files/directories. To be consistent
158+
with Git behavior, you should explicitly search from the Git repository root.
158159

159160
.. versionadded:: 5.4
160161

0 commit comments

Comments
 (0)
0