]> git.ipfire.org Git - thirdparty/git.git/commit - add-interactive.c
built-in add -i: prepare for multi-selection commands
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 29 Nov 2019 21:11:43 +0000 (21:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Dec 2019 15:30:54 +0000 (07:30 -0800)
commitf37c22645408540cb03018f82a95fcd6ae6e4fbf
tree3570fbc3da0a97aade72508a63f10052d71b02ba
parentc08171d156f6f77bdab6500f0b433b650a31ccae
built-in add -i: prepare for multi-selection commands

The `update`, `revert` and `add-untracked` commands allow selecting
multiple entries. Let's extend the `list_and_choose()` function to
accommodate those use cases.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-interactive.c