Re: [PATCH] cherry-pick: do not error on non-merge commits when '-m 1' is specified
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Sergey Organov <sorganov@gmail.com> writes:
>
>> When cherry-picking multiple commits, it's impossible to have both
>> merge- and non-merge commits on the same command-line. Not specifying
>> '-m 1' results in cherry-pick refusing to handle merge commits, while
>> specifying '-m 1' fails on non-merge commits.
>
> Allowing "-m1" even when picking a single parent commit, because
> the 1-st parent is defined for such a commit, makes sense, espeially
> when running a cherry-pick on a range, exactly for the above reason.
> It is slightly less so when cherry-picking a single commit, but not
> by a large margin.
Show 10 quoted lines
>> + } else if (1 < opts->mainline)
>> + /* Non-first parent explicitly specified as mainline for
>> + * non-merge commit */
>
> Style.
>
> /*
> * Our multi-line comments are to be
> * formatted like this.
> */
Ah, sorry for that. Will you fix it for me?
Thanks!
-- Sergey