aboutsummaryrefslogtreecommitdiff
path: root/lib/git/ignore_pattern.go
AgeCommit message (Collapse)Author
2026-01-15lib/git: handle pattern "**/foo/**"Shulhan
The "**/foo/**" means accept any files as long as there is foo directory in the middle.
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-11lib/git: fix ignore pattern with single wildcard '*'Shulhan
Single wildcard should ignore everything inside it.
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.