Re: [PATCH 2/2] ls-files: add --sparse option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux