struct Zap::Utils::Git::Ignore
- Zap::Utils::Git::Ignore
- Struct
- Value
- Object
Overview
Attempt to reproduce the gitignore resolution algorithm.
I tried to use globs first, but the Crystal implementation does not feel right. Ultimately it seems easier to use regexes.
Defined in:
utils/git/ignore.crConstructors
Instance Method Summary
-
#match?(entry : String) : Bool
Important: directory entries must end with a slash
- #merge(other : Git::Ignore) : Git::Ignore
- #rules : Array(Pattern)