Re: [PATCH 08/11] sequencer: simplify pick_one_commit()
On Tue, Jun 30, 2026 at 04:28:58PM +0100, Phillip Wood wrote:
Show 9 quoted lines
>+++ b/sequencer.c
>@@ -4981,14 +4983,13 @@ static int pick_one_commit(struct repository *r,
> }
> return error_with_patch(r, commit,
> arg, item->arg_len, opts, res, !res);
>- }
>- if (is_rebase_i(opts) && !res)
>+ } else if (!res) {
>Show 5 quoted lines
> record_in_rewritten(&item->commit->object.oid,
> peek_command(todo_list, 1));
>- if (res && is_fixup(item->command)) {
>+ } else if (res && is_fixup(item->command)) {
>.. the res conditional is pointless here.
Show 5 quoted lines
> return error_failed_squash(r, item->commit, opts,
> item->arg_len, arg);
>- } else if (res && is_rebase_i(opts)) {
>+ } else if (res) {
>> int to_amend = 0;
> struct object_id oid;
>