git-lfs/lfs
brian m. carlson e6c9d1de19
commands/fsck: allow scanning revision ranges
Currently, git lfs fsck operates only on the HEAD and index.  For
objects, this is usually the right decision, since only objects for HEAD
are checked out.

However, for pointers, this may not be desired.  A user may want to
check pointers for a range of commits, such as during a CI job.  To deal
with these cases, let a user specify a revision or a simple range of
revisions to operate on, and process those revisions.

Note that we don't currently process the index with --pointers because
this requires a completely different set of scanners which are not yet
implemented.  We can implement such a feature in a future revision if
desired.

In the tests, refactor out our setup code into a function for reuse in
multiple tests.
2021-07-14 18:16:51 +00:00
..
attribute.go add per-worktree configuration option 2020-06-26 14:56:04 -07:00
config_test.go move config.FetchPruneConfig -> lfs.FetchPruneConfig 2017-10-18 13:51:57 -06:00
config.go prune: add options to be more aggressive about pruning 2021-01-13 19:30:40 +00:00
diff_index_scanner.go status: update index before showing status 2019-11-18 20:37:52 +00:00
extension.go Use subprocess for invoking all commands 2020-12-21 22:19:04 +00:00
gitfilter_clean.go lfs: use blobSizeCutoff in clean pointer buf test 2021-03-10 20:58:17 -08:00
gitfilter_smudge.go commands: don't try to upload or download zero-length pointers 2021-07-14 18:12:06 +00:00
gitfilter.go lfs,git: send refspec in batch api calls from smudge filter 2018-01-05 15:01:29 -07:00
gitscanner_catfilebatch.go lfs: make all blob size checks consistent 2021-03-11 13:08:19 -08:00
gitscanner_catfilebatchcheck.go lfs: parse git cat-file --batch-check output for SHA-256 2020-07-29 20:53:43 +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 git: pass Git environment to object scanner 2020-07-29 20:53:43 +00:00
gitscanner_log.go lfs,t: parse only stash log entries for prune 2021-03-23 01:33:31 -07:00
gitscanner_pointerscanner_test.go Support SHA-256 repositories 2020-07-29 20:53:44 +00:00
gitscanner_refs.go lfs: find invalid pointers 2021-07-14 18:12:09 +00:00
gitscanner_remotes.go git: improve performance of remote ref listing 2020-07-01 22:51:27 -07:00
gitscanner_tree.go lfs: find invalid pointers 2021-07-14 18:12:09 +00:00
gitscanner.go commands/fsck: allow scanning revision ranges 2021-07-14 18:16:51 +00:00
hook.go Use proper repo permissions when creating directories 2018-12-13 17:51:02 +00:00
lfs_test.go t: move testutils.go to cmd sub-package 2018-07-13 12:54:18 -05:00
lfs.go commands: canonicalize certain Git environment variables 2020-10-14 16:49:23 +00:00
pointer_test.go lfs: parse empty strings as pointer files 2021-07-14 18:12:06 +00:00
pointer.go lfs: parse empty strings as pointer files 2021-07-14 18:12:06 +00:00
scanner_git_test.go Pass environment variables into object scanner 2019-08-15 17:39:32 +00:00
scanner_test.go git: move LsTreeScanner to the git package 2021-07-14 18:12:07 +00:00
scanner.go git: move LsTreeScanner to the git package 2021-07-14 18:12:07 +00:00
util_generic.go Fix non linux with cgo build condition 2016-01-30 00:58:55 +03:00
util_test.go progress,tools: move CopyCallback (and related) to 'tools' 2017-11-22 14:08:33 -08:00
util.go Fix error strings to follow Go guidelines 2019-10-22 17:33:49 +03:00