Add file contents to the index.
public add ( string $filepattern, array $options = [] ) : |
||
$filepattern | string | Files to add content from. Fileglobs (e.g. *.c) can be given to add all matching files. Also a leading directory name (e.g. dir to add dir/file1 and dir/file2) can be given to add all files in the directory, recursively. |
$options | array | An optional array of command line options. |
return |