Thread (47 messages) 47 messages, 5 authors, 2021-12-22

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

flat view

From: Derrick Stolee <hidden>
Date: 2021-12-08 15:20:41

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help