Derrick Stolee <derrickstolee@xxxxxxxxxx> writes: > The reason for test_sparse_match instead of test_all_match is because the > error messages change depending on the existence of the path in the > worktree. For example "git show :folder1/" in the test script would have > this output difference: > > + diff -u full-checkout-err sparse-checkout-err > --- full-checkout-err 2022-04-12 13:35:51.430805689 +0000 > +++ sparse-checkout-err 2022-04-12 13:35:51.430805689 +0000 > @@ -1 +1 @@ > -fatal: path 'folder1/' exists on disk, but not in the index > +fatal: path 'folder1/' does not exist (neither on disk nor in the index) Ah, because naturally folder1/ would not be on disk if it is outside the sparse cones? Makes sense. Thanks.