Skip to content

Commit

Permalink
Revert "reset: Make reset remove the sequencer state"
Browse files Browse the repository at this point in the history
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 <j6t@kdbg.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Dec 12, 2011
1 parent 218b65f commit a7eff1e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 55 deletions.
2 changes: 0 additions & 2 deletions branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "refs.h"
#include "remote.h"
#include "commit.h"
#include "sequencer.h"

struct tracking {
struct refspec spec;
Expand Down Expand Up @@ -247,5 +246,4 @@ void remove_branch_state(void)
unlink(git_path("MERGE_MSG"));
unlink(git_path("MERGE_MODE"));
unlink(git_path("SQUASH_MSG"));
remove_sequencer_state(0);
}
2 changes: 1 addition & 1 deletion t/t3510-cherry-pick-sequence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ test_expect_success '--continue asks for help after resolving patch to nil' '
test_i18ngrep "The previous cherry-pick is now empty" msg
'

test_expect_failure 'follow advice and skip nil patch' '
test_expect_success 'follow advice and skip nil patch' '
pristine_detach conflicting &&
test_must_fail git cherry-pick initial..picked &&
Expand Down
52 changes: 0 additions & 52 deletions t/t7106-reset-sequence.sh

This file was deleted.

0 comments on commit a7eff1e

Please sign in to comment.