aboutsummaryrefslogtreecommitdiff
path: root/lib/git/testdata/IsIgnored/foo
AgeCommit message (Collapse)Author
2026-01-06lib/git: add Git type with method IsIgnoredShulhan
The Git type is for working with single git repository. The [Git.IsIgnored] method is to check if the `path` is ignored by git. This is processed by matching it with all of the pattern in the ".gitignore" file from the path directory and its parent until the root of Git repository.
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.