summaryrefslogtreecommitdiff
path: root/add-interactive.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-12-21 21:57:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-22 00:06:22 (GMT)
commitcee6cb7300354740ff765c74d535ba5d5f9b332e (patch)
tree5b7f8beacf5976aca5ab24327a39ea8081e7955c /add-interactive.h
parent52628f94fc35f57f0b3c54e4f849e490bfa44449 (diff)
downloadgit-cee6cb7300354740ff765c74d535ba5d5f9b332e.zip
git-cee6cb7300354740ff765c74d535ba5d5f9b332e.tar.gz
git-cee6cb7300354740ff765c74d535ba5d5f9b332e.tar.bz2
built-in add -p: implement the "worktree" patch modes
This is a straight-forward port of 2f0896ec3ad4 (restore: support --patch, 2019-04-25) which added support for `git restore -p`. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/add-interactive.h b/add-interactive.h
index 77907f6..b2f2347 100644
--- a/add-interactive.h
+++ b/add-interactive.h
@@ -28,6 +28,7 @@ enum add_p_mode {
ADD_P_STASH,
ADD_P_RESET,
ADD_P_CHECKOUT,
+ ADD_P_WORKTREE,
};
int run_add_p(struct repository *r, enum add_p_mode mode,