Skip to content

Commit a7eff1e

Browse files
jrngitster
authored andcommitted
Revert "reset: Make reset remove the sequencer state"
This reverts commit 95eb88d, which was a UI experiment that did not reflect how "git reset" actually gets used. The reversion also fixes a test, indicated in the patch. Encouraged-by: Johannes Sixt <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 218b65f commit a7eff1e

File tree

3 files changed

+1
-55
lines changed

3 files changed

+1
-55
lines changed

branch.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "refs.h"
44
#include "remote.h"
55
#include "commit.h"
6-
#include "sequencer.h"
76

87
struct tracking {
98
struct refspec spec;
@@ -247,5 +246,4 @@ void remove_branch_state(void)
247246
unlink(git_path("MERGE_MSG"));
248247
unlink(git_path("MERGE_MODE"));
249248
unlink(git_path("SQUASH_MSG"));
250-
remove_sequencer_state(0);
251249
}

t/t3510-cherry-pick-sequence.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ test_expect_success '--continue asks for help after resolving patch to nil' '
353353
test_i18ngrep "The previous cherry-pick is now empty" msg
354354
'
355355

356-
test_expect_failure 'follow advice and skip nil patch' '
356+
test_expect_success 'follow advice and skip nil patch' '
357357
pristine_detach conflicting &&
358358
test_must_fail git cherry-pick initial..picked &&
359359

t/t7106-reset-sequence.sh

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)