]> git.ipfire.org Git - thirdparty/git.git/commit
add --chmod: don't update index when --dry-run is used
authorMatheus Tavares <matheus.bernardino@usp.br>
Tue, 23 Feb 2021 01:10:33 +0000 (22:10 -0300)
committerJunio C Hamano <gitster@pobox.com>
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 <gitster@pobox.com>
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
t/t3700-add.sh