| 4630 | } |
| 4631 | |
| 4632 | static int is_final_fixup(struct todo_list *todo_list) |
| 4633 | { |
| 4634 | int i = todo_list->current; |
| 4635 | |
| 4636 | if (!is_fixup(todo_list->items[i].command)) |
| 4637 | return 0; |
| 4638 | |
| 4639 | while (++i < todo_list->nr) |
| 4640 | if (is_fixup(todo_list->items[i].command)) |
| 4641 | return 0; |
| 4642 | else if (!is_noop(todo_list->items[i].command)) |
| 4643 | break; |
| 4644 | return 1; |
| 4645 | } |
| 4646 | |
| 4647 | static enum todo_command peek_command(struct todo_list *todo_list, int offset) |
| 4648 | { |
no test coverage detected