Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-02 10:53:24 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-02 10:53:24 +0300
commitcd41f66b9dc6b12038e7669e591ad3c593144563 (patch)
tree92f7779ed859e2cd517da15b590f6c791f2d7cf8
parentf76827da0e54490b3c4778ce19947b91d6828495 (diff)
parent63642d58b4b28c3caba6d5ab0c3aa98c4ce54eaa (diff)
Merge branch 'ob/sequencer-remove-dead-code' into maint-2.42
Code clean-up. * ob/sequencer-remove-dead-code: sequencer: remove unreachable exit condition in pick_commits()
-rw-r--r--sequencer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sequencer.c b/sequencer.c
index 91365e2fe2..42f495c4b4 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -4843,10 +4843,6 @@ static int pick_commits(struct repository *r,
struct strbuf head_ref = STRBUF_INIT, buf = STRBUF_INIT;
struct stat st;
- /* Stopped in the middle, as planned? */
- if (todo_list->current < todo_list->nr)
- return 0;
-
if (read_oneliner(&head_ref, rebase_path_head_name(), 0) &&
starts_with(head_ref.buf, "refs/")) {
const char *msg;