Handle gitignore negations #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "maciek/potodo:handle-gitignore-negation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Presence of negations in gitignore requires different applying of rules. This different applying is present in gitignore_parser library in
_parse_gitignore_lines()function, which is not used by potodo. I used code from that function in potodo'sbuild_ignore_matcher()function. Confirmed it works as expected (below).Before (now)
% potodo --show-finished --exclude **/* '!bugs.po' '!tutorial/*' '!library/functions.po'returns nothing, not taking negations into account.After, negations are accounted for: