git-lfs/lfs
brian m. carlson 9013147583
lfs: don't flag non-LFS files as invalid pointers
When scanning the repository for invalid pointers, we set up a filter
with all the paths from .gitattributes for that commit.  However, the
default behavior of a filter with no paths is to return true for all
objects.  As a result, if there is no .gitattributes file, or if it
contains no filter=lfs lines, then we flag all files in the repository
as LFS files and complain about all of them not being pointers.

Since this isn't the desired behavior, let's correct it by setting the
default behavior of the filter to false and add a test for this case.
2021-10-18 19:09:40 +00:00
..
attribute.go Set package version to v3 2021-09-02 20:41:08 +00:00
config_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
config.go Set package version to v3 2021-09-02 20:41:08 +00:00
diff_index_scanner.go Set package version to v3 2021-09-02 20:41:08 +00:00
extension.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitfilter_clean.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitfilter_smudge.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitfilter.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_catfilebatch.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_catfilebatchcheck.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_catfilebatchcheckscanner_test.go lfs: teach gitscanner how to emit lockable files that aren't lfs objects 2017-02-16 16:52:40 -07:00
gitscanner_index.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_log.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_pointerscanner_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_refs.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_remotes.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_tree.go lfs: don't flag non-LFS files as invalid pointers 2021-10-18 19:09:40 +00:00
gitscanner.go Set package version to v3 2021-09-02 20:41:08 +00:00
hook.go Set package version to v3 2021-09-02 20:41:08 +00:00
lfs_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
lfs.go Set package version to v3 2021-09-02 20:41:08 +00:00
pointer_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
pointer.go fs: specify a file as existing if it's empty 2021-09-28 12:33:22 +00:00
scanner_git_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
scanner_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
scanner.go Set package version to v3 2021-09-02 20:41:08 +00:00
util_generic.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
util_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
util.go Set package version to v3 2021-09-02 20:41:08 +00:00