public function isFileIgnored(string
$filename,
[boolean
$tracked_files_are_not_ignored = true] )
Parameters
$filename
—
string
$tracked_files_are_not_ignored
—
boolean
If true (default), files that are already staged or committed, will not be considered as ignored even if they match any patterns in .gitignore files. This is git's normal behaviour. If set to false, doesn't check the git's index at all, only checks the .gitignore files (good for debugging .gitignore files).