22a7fbdb4a
There are two types of pattern matching with wildmatch patterns in Git: gitignore and gitattributes patterns. We'd like to support both, but without the lazy matching that was the cause of so many problems before. Add a type of pattern to use when creating a new filepathfilter and use it to instantiate the wildmatch pattern with the proper flags. Remove the dirs flag, which is unused and has been for sometime, and also the stripping of trailing slashes, which we want to use to indicate a directory. Drop the non-strict mode since our pattern matching is now much improved and compatible with Git. |
||
---|---|---|
.. | ||
filepathfilter_test.go | ||
filepathfilter.go |