git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug report

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 3, 2022, 16:53 UTC
Message-ID
<xmqqill0voft.fsf@gitster.g>
In-Reply-To
<CADTs3HEn8JQzfWGP-rq_BBLvwGD163=c2i_7vFK17g+wAVec+Q@mail.gmail.com>
Alastair Douglas <alastair.douglas@gmail.com> writes:
> I have found no solution to the issue below. Apologies if it has
> already been addressed.
Thanks for a report.  

The solution is to remove "[pull] rebase = preserve" and replace it with "[pull] rebase = merges", I think.

Show 18 quoted lines
> What did you do before the bug happened? (Steps to reproduce your issue)
>
> Have an existing git config with rebase = preserve
>
> What did you expect to happen? (Expected behaviour)
>
> Merges to be preserved when rebasing, without a warning about an option I am
> not using.
>
> What happened instead? (Actual behaviour)
>
> I received a warning as though I had used the option on the command line:
>
> warning: git rebase --preserve-merges is deprecated. Use
> --rebase-merges instead.
>
> I didn't do that, so I can't follow the advice. There appears to be no
> alternative config setting for the new option.

It sounds like splitting hairs, but I agree that the message is misleading. I think whoever wrote the message meant that "the feature that is triggered by giving the --preserve-merges option to the command" was deprecated. IOW, they did not mean that only the command line option was depreated, implying that it is not deprecated to trigger the same feature by setting a configuration variable. Both forms of the use of the same feature was deprecated about the same time.

I also suspect that they were hoping that the users will read the instruction based on these command line options and understand that it also applies to the configuration variables.

Previous: Alastair DouglasNext: Alastair Douglas
Message 2 of 5 in “Bug report”
  1. Alastair DouglasOct 3, 2022
  2. Junio C HamanoOct 3, 2022
  3. Alastair DouglasOct 4, 2022
  4. Philip OakleyOct 4, 2022
  5. Junio C HamanoOct 5, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.