]> git.ipfire.org Git - thirdparty/git.git/commit
add --interactive: allow `update` to stage deleted files
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 28 Jun 2022 22:22:44 +0000 (22:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2022 22:37:50 +0000 (15:37 -0700)
commit4788e8b25692a8ae1a005554d3ad12f8ee4ee29e
tree3d2ba891cef3da768888cbc8b1d2001beef9a2fc
parent3beff388b2accbc474383d38ef12d4fe31152abc
add --interactive: allow `update` to stage deleted files

The scripted version of `git add -i` used `git update-index --add
--remove`, but the built-in version implemented only the `--add` part.

This fixes https://github.com/msys2/MSYS2-packages/issues/3066

Reported-by: Christoph Reiter <reiter.christoph@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-interactive.c
t/t3701-add-interactive.sh