Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d7ec3f

Browse files
committed
adding ignoreVCSIgnored documentation
1 parent 5dc1c9f commit 6d7ec3f

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)