]> git.ipfire.org Git - thirdparty/git.git/commit
built-in add -p: implement the "stash" and "reset" patch modes
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 21 Dec 2019 21:57:11 +0000 (21:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Dec 2019 00:06:21 +0000 (16:06 -0800)
commit36bae1dc0ee777aa529dd955f2e619281265f262
tree07a56e06c48b599b948e235ca0cd626232dc193e
parentd2a233cb8b9e0f7210df68c35e751e00419a8488
built-in add -p: implement the "stash" and "reset" patch modes

The `git stash` and `git reset` commands support a `--patch` option, and
both simply hand off to `git add -p` to perform that work. Let's teach
the built-in version of that command to be able to perform that work, too.

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