add --chmod: don't update index when --dry-run is used
authorMatheus Tavares <redacted>
Tue, 23 Feb 2021 01:10:33 +0000 (22:10 -0300)
committerJunio C Hamano <redacted>
Wed, 24 Feb 2021 20:14:51 +0000 (12:14 -0800)
commitc937d70bfb7661d5122e08758ae0531073a719ed
tree9f33529e8be9c981f0cb935d10059b879409adfd
parent966e671106b2fd38301e7c344c754fd118d0bb07
add --chmod: don't update index when --dry-run is used

`git add --chmod` applies the mode changes even when `--dry-run` is
used. Fix that and add some tests for this option combination.

Helped-by: Junio C Hamano <redacted>
Signed-off-by: Matheus Tavares <redacted>
Reviewed-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/add.c
t/t3700-add.sh
git clone https://git.99rst.org/PROJECT