summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 539047c)
raw | patch | inline | side by side (parent: 539047c)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 22 Nov 2011 11:20:46 +0000 (05:20 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Nov 2011 02:18:02 +0000 (18:18 -0800) |
Remove the "git cherry-pick --reset" option, which has a different
preferred spelling nowadays ("--quit"). Luckily the old --reset name
was not around long enough for anyone to get used to it.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
preferred spelling nowadays ("--quit"). Luckily the old --reset name
was not around long enough for anyone to get used to it.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c | patch | blob | history | |
t/t3510-cherry-pick-sequence.sh | patch | blob | history |
diff --git a/builtin/revert.c b/builtin/revert.c
index 70a5fbb672f14bec432447b37ce9b012577fe510..0c61668b858671c4817e1445de01812fcc53f92d 100644 (file)
--- a/builtin/revert.c
+++ b/builtin/revert.c
OPT_STRING(0, "strategy", &opts->strategy, "strategy", "merge strategy"),
OPT_CALLBACK('X', "strategy-option", &opts, "option",
"option for merge strategy", option_parse_x),
- { OPTION_BOOLEAN, 0, "reset", &remove_state, NULL,
- "alias for --quit (deprecated)",
- PARSE_OPT_HIDDEN | PARSE_OPT_NOARG },
OPT_END(),
OPT_END(),
OPT_END(),
index e97397f96b29d9f20183c99999ec5bf7923549e7..2c4c1c851dcbb1cd38edc2a2620e2b04e36f7192 100755 (executable)
test_path_is_missing .git/sequencer
'
-test_expect_success 'cherry-pick --reset (another name for --quit)' '
+test_expect_success '--quit keeps HEAD and conflicted index intact' '
pristine_detach initial &&
cat >expect <<-\EOF &&
OBJID
:000000 100644 OBJID OBJID A unrelated
EOF
test_must_fail git cherry-pick base..picked &&
- git cherry-pick --reset &&
+ git cherry-pick --quit &&
test_path_is_missing .git/sequencer &&
test_must_fail git update-index --refresh &&
{