7f9b3d7f76
The blobSizeCutoff limit is defined such that "any file with a size below this cutoff will be scanned" when looking for LFS pointer blobs. In general this is true, but there are few instances where the check is applied such that blobs matching the cutoff limit are also scanned. We therefore adjust these to match the same comparison logic used elsewhere with this limit. Two of these checks are in the PointerScanner.next() method used by the runCatFileBatch() function; they were introduced in commit 844c0b0db2bf3d39f52773e5f63ee10683a28342 in PR #2070 and scan Git objects for eligible LFS pointers when reading the output of "git cat-file --batch". Note that the corresponding runCatFileBatchCheck() function's catFileBatchCheckScanner.next() method excludes blobs whose size is above or equal to the limit (with a default limit of blobSizeCutoff); this aligns with other usage and checks of the blobSizeCutoff maximum as well. The other check is in the DecodePointerFromFile() function where it is used to exclude from consideration as Git LFS pointers any files larger than blobSizeCutoff. This function is ultimately called by the "git lfs checkout" command; the original implementation was added in commit 001ddcd7cfae528a6594be9bab4562c6659a00e7 in PR #527. |
||
---|---|---|
.. | ||
attribute.go | ||
config_test.go | ||
config.go | ||
diff_index_scanner.go | ||
extension.go | ||
gitfilter_clean.go | ||
gitfilter_smudge.go | ||
gitfilter.go | ||
gitscanner_catfilebatch.go | ||
gitscanner_catfilebatchcheck.go | ||
gitscanner_catfilebatchcheckscanner_test.go | ||
gitscanner_index.go | ||
gitscanner_log.go | ||
gitscanner_pointerscanner_test.go | ||
gitscanner_refs.go | ||
gitscanner_remotes.go | ||
gitscanner_tree.go | ||
gitscanner.go | ||
hook.go | ||
lfs_test.go | ||
lfs.go | ||
pointer_test.go | ||
pointer.go | ||
scanner_git_test.go | ||
scanner_test.go | ||
scanner.go | ||
util_generic.go | ||
util_test.go | ||
util.go |