git-lfs/filepathfilter
brian m. carlson fecaf2da30
filepathfilter: add an option for stricter matching
For backwards compatibility reasons, we transform some wildmatch
patterns.  However, when we're reading a pattern from .gitattributes, we
do this as well, and these transformations can cause us to fail to match
some things that Git does match.

While we want to retain the behavior of the command-line options for
compatibility, at least until 3.0, there's no reason for us to mismatch
patterns in .gitattributes: that's clearly a bug.  Let's add an option
to our pattern constructor to match patterns strictly so we can enable
it when reading from .gitattributes, and disable our pattern
manipulation when it's enabled.

To help us improve debugging, let's also add the value of the strictness
flag when printing the transformed pattern.
2020-11-10 22:59:33 +00:00
..
filepathfilter_test.go filepathfilter: test correct set of global wildcards 2018-02-27 16:38:08 -08:00
filepathfilter.go filepathfilter: add an option for stricter matching 2020-11-10 22:59:33 +00:00