built-in stash: use the built-in `git add -p` if so configured
commit6610e4628ac12396efc20201fe85d67591bed247
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 21 Dec 2019 21:57:13 +0000 (21 21:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Dec 2019 00:06:21 +0000 (21 16:06 -0800)
tree7a583cc35cf15dac16f1294ec0f21916549d1baf
parent90a6bb98d11a664f729dbb86c90d9c7a38ea825a
built-in stash: use the built-in `git add -p` if so configured

The scripted version of `git stash` called directly into the Perl script
`git-add--interactive.perl`, and this was faithfully converted to C.

However, we have a much better way to do this now: call the internal API
directly, which will now incidentally also respect the
`add.interactive.useBuiltin` setting. Let's just do this.

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