t3705: add tests for `git add` in sparse checkouts
commit6594afc3cc4bd87247b44d3d3bf75d693fc066aa
authorMatheus Tavares <matheus.bernardino@usp.br>
Thu, 8 Apr 2021 20:41:23 +0000 (8 17:41 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 21:18:03 +0000 (8 14:18 -0700)
tree62e7ba3bb795a446d4dec04ac100f0337ca7b578
parent4e9569834936a8c0df8c9afdc0334f1b96b20914
t3705: add tests for `git add` in sparse checkouts

We already have a couple tests for `add` with SKIP_WORKTREE entries in
t7012, but these only cover the most basic scenarios. As we will be
changing how `add` deals with sparse paths in the subsequent commits,
let's move these two tests to their own file and add more test cases
for different `add` options and situations. This also demonstrates two
options that don't currently respect SKIP_WORKTREE entries: `--chmod`
and `--renormalize`.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3705-add-sparse-checkout.sh [new file with mode: 0755]
t/t7012-skip-worktree-writing.sh