9c774cef38
At present, the "git lfs migrate info" command reports the total sizes, numbers, and file extensions for blobs which have already been converted to LFS pointers, and it uses the size of the pointer blobs themselves instead of the size of object data referenced by the pointers. The result is a confusing output which does not distinguish these types, has misleading size totals, and generates output listings even for repositories fully migrated to LFS. We therefore add a new --pointers option to the "migrate info" command so that a summary of all valid LFS pointers found in the repository traversal may be either skipped entirely or reported separately. To support this option we add an lfs.DecodePointerFromBlob() function which parallels the existing lfs.DecodePointerFromFile() function. We also refactor some of the entry lookup logic in the BlobFn callback function used in the migrateInfoCommand() function into a new findEntryByExtension() utility function. |
||
---|---|---|
.. | ||
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 |