git-lfs/filepathfilter
brian m. carlson 22a7fbdb4a
filepathfilter: switch to strict pattern matching
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.
2021-08-26 15:48:54 +00:00
..
filepathfilter_test.go filepathfilter: switch to strict pattern matching 2021-08-26 15:48:54 +00:00
filepathfilter.go filepathfilter: switch to strict pattern matching 2021-08-26 15:48:54 +00:00