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-09-20 20:44:58 +0300
committerJunio C Hamano <gitster@pobox.com>2023-09-20 20:44:58 +0300
commit0e72b42a52bd7171c5173cfd82bda5c30bc024c8 (patch)
tree0cf008e0b462a86065087115e9b3d8bc1a0d5994 /sequencer.c
parent8c71f082eb2336909b4a291d014c98dbdde18a92 (diff)
parent63642d58b4b28c3caba6d5ab0c3aa98c4ce54eaa (diff)
Merge branch 'ob/sequencer-remove-dead-code'
Code clean-up. * ob/sequencer-remove-dead-code: sequencer: remove unreachable exit condition in pick_commits()
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sequencer.c b/sequencer.c
index 9021cb8178..d584cac8ed 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -4854,10 +4854,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;