add: die if both --dry-run and --interactive are given
commita1989cf7b8d062960b6f8de00435711c45b95285
authorØystein Walle <oystwa@gmail.com>
Wed, 5 May 2021 14:52:04 +0000 (5 16:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 May 2021 21:14:04 +0000 (7 06:14 +0900)
treed69953e957e80de89da1c3755cfe1778123482ce
parent7e391989789db82983665667013a46eabc6fc570
add: die if both --dry-run and --interactive are given

The interactive machinery does not obey --dry-run. Die appropriately
if both flags are passed.

Signed-off-by: Øystein Walle <oystwa@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
t/t3700-add.sh