summaryrefslogtreecommitdiff
path: root/add-interactive.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-12-21 21:57:11 +0000
committerJunio C Hamano <gitster@pobox.com>2019-12-21 16:06:21 -0800
commit36bae1dc0ee777aa529dd955f2e619281265f262 (patch)
tree07a56e06c48b599b948e235ca0cd626232dc193e /add-interactive.h
parentd2a233cb8b9e0f7210df68c35e751e00419a8488 (diff)
downloadgit-36bae1dc0ee777aa529dd955f2e619281265f262.tar.gz
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>
Diffstat (limited to 'add-interactive.h')
-rw-r--r--add-interactive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/add-interactive.h b/add-interactive.h
index e29a769aba..1f6a61326e 100644
--- a/add-interactive.h
+++ b/add-interactive.h
@@ -25,6 +25,8 @@ int run_add_i(struct repository *r, const struct pathspec *ps);
enum add_p_mode {
ADD_P_ADD,
+ ADD_P_STASH,
+ ADD_P_RESET,
};
int run_add_p(struct repository *r, enum add_p_mode mode,