Use reverse scan instead of building list of match results
Closed this issue · 1 comments
roberth commented
The rules are currently processed from start to end, but we only need the last match in order to determine the outcome. This will simplify the logic.
This code will be replaced:
https://github.com/hercules-ci/gitignore/blob/master/rules.nix#L30-L44