Skip to content

Commit c427b21

Browse files
jrngitster
authored andcommitted
revert: remove --reset compatibility option
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 539047c commit c427b21

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

builtin/revert.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ static void parse_args(int argc, const char **argv, struct replay_opts *opts)
154154
OPT_STRING(0, "strategy", &opts->strategy, "strategy", "merge strategy"),
155155
OPT_CALLBACK('X', "strategy-option", &opts, "option",
156156
"option for merge strategy", option_parse_x),
157-
{ OPTION_BOOLEAN, 0, "reset", &remove_state, NULL,
158-
"alias for --quit (deprecated)",
159-
PARSE_OPT_HIDDEN | PARSE_OPT_NOARG },
160157
OPT_END(),
161158
OPT_END(),
162159
OPT_END(),

t/t3510-cherry-pick-sequence.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test_expect_success '--quit cleans up sequencer state' '
9595
test_path_is_missing .git/sequencer
9696
'
9797

98-
test_expect_success 'cherry-pick --reset (another name for --quit)' '
98+
test_expect_success '--quit keeps HEAD and conflicted index intact' '
9999
pristine_detach initial &&
100100
cat >expect <<-\EOF &&
101101
OBJID
@@ -105,7 +105,7 @@ test_expect_success 'cherry-pick --reset (another name for --quit)' '
105105
:000000 100644 OBJID OBJID A unrelated
106106
EOF
107107
test_must_fail git cherry-pick base..picked &&
108-
git cherry-pick --reset &&
108+
git cherry-pick --quit &&
109109
test_path_is_missing .git/sequencer &&
110110
test_must_fail git update-index --refresh &&
111111
{

0 commit comments

Comments
 (0)