aboutsummaryrefslogtreecommitdiff
path: root/lib/git/gitignore.go
AgeCommit message (Collapse)Author
2026-01-14lib/git: expose the API for IgnorePatternShulhan
The IgnorePattern is not exclusive to git only. Some program, like REUSE, use the same pattern in the REUSE.toml path configuration.
2026-01-06lib/git: implement GitignoreShulhan
Gitignore is a type that represent ".gitignore" file. There are two ways to populate Gitignore, by using [LoadGitignore] function, or by using [Gitignore.Parse] method. After the Gitignore created, one can check if a path is ignored by using [Gitignore.IsIgnored] method, relative to the Gitignore directory.