8000 minor #11224 Adding ignoreVCSIgnored documentation (amaabdou) · symfony/symfony-docs@bd1697e · GitHub
[go: up one dir, main page]

Skip to content

Commit bd1697e

Browse files
committed
minor #11224 Adding ignoreVCSIgnored documentation (amaabdou)
This PR was merged into the master branch. Discussion ---------- Adding ignoreVCSIgnored documentation <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Adding documentation for symfony/symfony#30448 Commits ------- 6d7ec3f adding ignoreVCSIgnored documentation
2 parents 25e8349 + 6d7ec3f commit bd1697e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/finder.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,15 @@ Restrict by a depth range by chaining calls or passing an array::
355355
// same as above
356356
$finder->depth(['> 2', '< 5']);
357357

358+
Gitignore
359+
~~~~~~~~~~~~~~~
360+
361+
The Finder can follow .gitignore file rules. :method:`Symfony\\Component\\Finder\\Finder::ignoreVCSIgnored`::
362+
363+
$finder->ignoreVCSIgnored(true);
364+
365+
This will exclude files based on .gitignore rules as git does.
366+
358367
Custom Filtering
359368
~~~~~~~~~~~~~~~~
360369

0 commit comments

Comments
 (0)
0