Skip to content
github-actions edited this page Apr 11, 2026 · 1 revision

Reads raw .gitattributes content from the filesystem.

This reader SHALL return the complete textual contents of a .gitattributes file, and MUST yield an empty string when the file does not exist.


Methods

read

Reads a .gitattributes file from the specified filesystem path.

public read(string $gitattributesPath): string

Parameters:

Parameter Type Description
$gitattributesPath string The filesystem path to the .gitattributes file.

Return Value:

The raw .gitattributes content, or an empty string when absent.


Clone this wiki locally