Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LinuxGitignore []byte
var WindowsGitignore []byte
Functions ¶
func New ¶
New creates a new GitIgnore instance based on the current operating system's default ignore patterns, with optional overrides. If overrides are provided, they will be used instead of the default patterns. If no overrides are provided, the function will use the default ignore patterns for the current operating system.
func NewWithAllowList ¶ added in v3.2.229
NewWithAllowList creates a new GitIgnore instance based on the OS specific defaults, but removes items in the allow list from the ignored patterns. If no allow list is provided, it will use the default ignore patterns for the current operating system, which is the same behavior as calling New() with no arguments.
func NewWithDenyList ¶ added in v3.2.234
NewWithDenyList creates a new GitIgnore instance based on the OS specific defaults, and adds items in the deny list to the ignored patterns. If no deny list is provided, it will use the default ignore patterns for the current operating system, which is the same behavior as calling New() with no arguments.
Types ¶
This section is empty.