]> git.ipfire.org Git - thirdparty/git.git/commit
built-in add -i: re-implement the `diff` command
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 29 Nov 2019 21:11:48 +0000 (21:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Dec 2019 15:30:54 +0000 (07:30 -0800)
commitd7633578b5ecf0d75e2793b01aa2e9afe645c186
treede58122ab36802aaefec05c73dacf984dd75f49e
parent8746e07277cb548185a33efa0037c313a06001f8
built-in add -i: re-implement the `diff` command

It is not only laziness that we simply spawn `git diff -p --cached`
here: this command needs to use the pager, and the pager needs to exit
when the diff is done. Currently we do not have any way to make that
happen if we run the diff in-process. So let's just spawn.

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