Documentation
¶
Overview ¶
Package gitignore provides helpers for maintaining .gitignore entries managed by melon. All functions are idempotent and safe to call repeatedly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsEntry ¶
ContainsEntry reports whether path contains a line matching entry (trimmed). Returns false if the file does not exist.
func EnsureEntries ¶
EnsureEntries reads the .gitignore at path (creating it if absent), appends any entries from the provided list that are not already present, and writes the result back. It returns the slice of entries that were newly added.
func RemoveEntries ¶
RemoveEntries removes lines matching any entry in entries from the .gitignore at path. Lines are matched by trimmed value. Missing file is silently ignored.
Types ¶
This section is empty.