[RFC PATCH 4/9] sequencer: update `done_nr' when skipping commands in a todo list
- From
Alban Gruin <alban.gruin@gmail.com>
- Date
- Jul 17, 2019, 14:39 UTC
- Message-ID
- <20190717143918.7406-5-alban.gruin@gmail.com>
- In-Reply-To
- <20190717143918.7406-1-alban.gruin@gmail.com>
In a todo list, `done_nr' is the amount of commands that were executed or skipped, but skip_unnecessary_picks() did not update it.
Signed-off-by: Alban Gruin <alban.gruin@gmail.com> --- sequencer.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sequencer.c b/sequencer.c index e61ae75451..ec9c3d4dc5 100644 --- a/sequencer.c +++ b/sequencer.c @@ -4939,6 +4939,7 @@ static int skip_unnecessary_picks(struct repository *r, MOVE_ARRAY(todo_list->items, todo_list->items + i, todo_list->nr - i); todo_list->nr -= i; todo_list->current = 0; + todo_list->done_nr += i; if (is_fixup(peek_command(todo_list, 0))) record_in_rewritten(base_oid, peek_command(todo_list, 0));
-- 2.22.0