hercules-ci/gitignore.nix

Use reverse scan instead of building list of match results

Closed this issue · 1 comments

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

Done in #20