Re: [PATCH 2/2] ls-files: add --sparse option
On 12/8/2021 10:14 AM, Derrick Stolee wrote:
Show 13 quoted lines
> Taking your idea and applying it to 'ls-files' (without --stage to
> avoid OIDs which would change depending on the hash algorithm), the
> start of the test looks like this:
>
> test_expect_success 'ls-files' '
> init_repos &&
>
> # Behavior agrees by default. Sparse index is expanded.
> test_all_match git ls-files &&
>
> # With --sparse, the sparse index data changes behavior.
> git -C sparse-index ls-files --stage >out &&
> git -C sparse-index ls-files --stage --sparse >sparse &&
Of course, I had a stale version here... "--stage" should not be here.
Thanks,
-Stolee