From: Derrick Stolee Date: Wed, 08 Dec 2021 15:20:37 GMT Subject: Re: [PATCH 2/2] ls-files: add --sparse option Message-ID: <7dac5ebc-fe01-4041-4f1c-0641edc3776c@gmail.com> In-Reply-To: <03a642fc-6310-1ea4-083e-9fe4530cf761@gmail.com> On 12/8/2021 10:14 AM, Derrick Stolee wrote: > 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