gitignore
Pure Zig .gitignore pattern matching — no libc dependency
Features
- Full .gitignore spec support:
*,?,[abc],**/, negation (!) - Recursive
.gitignorefiltering viaGitignoreStack(per-directory layers) - Pure Zig implementation — no
libcfnmatchdependency - Last-match-wins semantics across all layers
API
Gitignore
Parse a single .gitignore file and match paths against it.
| |
GitignoreStack
Manage a stack of .gitignore layers for recursive directory walks.
Each layer is anchored to its directory, and patterns are evaluated with
correct relative paths.
| |
Used by
tree: Respects.gitignorewhen listing directory trees.loc: Skips ignored files when counting lines of code.