Phillip Wood <phillip.wood...@gmail.com> writes:

> +static struct replay_opts get_replay_opts(const struct rebase_options *opts)
> +{
> +     struct replay_opts replay = REPLAY_OPTS_INIT;
> +
> +     sequencer_init_config(&replay);
> +
> +     replay.action = REPLAY_INTERACTIVE_REBASE;
> +     replay.signoff = opts->signoff;
> +     replay.allow_ff = !(opts->flags & REBASE_FORCE);
> +     if (opts->allow_rerere_autoupdate)
> +             replay.allow_rerere_auto = opts->allow_rerere_autoupdate;
> +     replay.allow_empty = 1;
> +     replay.allow_empty_message = opts->allow_empty_message;
> +     replay.verbose = opts->flags & REBASE_VERBOSE;
> +     replay.reschedule_failed_exec = opts->reschedule_failed_exec;
> +     replay.gpg_sign = xstrdup_or_null(opts->gpg_sign_opt);
> +     replay.strategy = opts->strategy;
> +
> +     return replay;
> +}

This calls init_config() and then sets .action; does it revert to
what dl/merge-cleanup-scissors-fix wants to do, which flipped the
order to fix some bug?  It is a bit hard to tell.

Unfortunately because of the earlier huge code movement the changes
to _this_ file does not conflict and cleanly merges, but because the
other file is removed by this series while a topic in flight updates
it, the semantic conflict like this luckily gets discovered.

Especially since this is still an RFC, I'd preferred to see it
without moving around the code too much (instead, exporting some
symbols that need to be visible with each other after renaming them
to more appropriate names that are fit in the global namespace).

Reply via email to