Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Full support of all gitignore features #5

Open
tkonolige opened this issue Aug 7, 2014 · 1 comment
Open

Full support of all gitignore features #5

tkonolige opened this issue Aug 7, 2014 · 1 comment

Comments

@tkonolige
Copy link
Owner

Dbignore lacks the following:

  • Correct directory handling.

If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory. In other words, foo/ will match a directory foo and paths underneath it, but will not match a regular file or a symbolic link foo (this is consistent with the way how pathspec works in general in Git).

  • Include excluded files.

An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded. Git doesn't list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined. Put a backslash ("") in front of the first "!" for patterns that begin with a literal "!", for example, "!important!.txt".

@tkonolige
Copy link
Owner Author

As #8 points out, fnmatch should be used for globbing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant