hercules-ci / gitignore.nix

Nix functions for filtering local git sources
The Unlicense
245 stars 20 forks source link

Use reverse scan instead of building list of match results #10

Closed roberth closed 5 years ago

roberth commented 5 years ago

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

roberth commented 5 years ago

Done in #20