Thread (7 messages) 7 messages, 3 authors, 2023-02-20

Re: [PATCH 2/2] rebase: add a config option for --rebase-merges

From: Alex Henrie <hidden>
Date: 2023-02-20 17:06:21

On Mon, Feb 20, 2023 at 2:38 AM Phillip Wood [off-list ref] wrote:
On 20/02/2023 03:32, Alex Henrie wrote:

I think the commit message could benefit from some justification for why
this config option is useful. I don't object to it being added but you
need to make the case for why it is a good idea.
The purpose of the new option is to accommodate users who would like
--rebase-merges to be on by default and to facilitate possibly turning
on --rebase-merges by default without configuration in a future
version of Git. I'll add a note about that to the config message.
quoted
At the same time, stop accepting --rebase-merges="" as a synonym of
--rebase-merges=no-rebase-cousins.
Please try to avoid combining unrelated changes in the same patch. I
agree that accepting an empty argument to mean "no-rebase-cousins" is
slightly odd but as that is the default I'm not sure it is doing any harm.
I wrote the code so that `git config rebase.merges ""` has the same
effect on `git rebase` as `git config --unset rebase.merges`, because
I think that's what most people are going to expect. I'd like to get
rid of the odd syntax --rebase-merges="" because a user might
reasonably expect it to do the same thing as `git config rebase.merges
""`, but it doesn't. On top of that, the config option uses the same
helper function as the command-line option. So I consider removing
--rebase-merges="" to be intertwined with adding the config option,
but I'll split them into separate patches anyway.

Thanks for the feedback,

-Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help