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

Re: [RFC PATCH] revert: Implement --abort processing

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 2, 2011, 16:41 UTC
Message-ID
<7vboygdw3d.fsf@alter.siamese.dyndns.org>
In-Reply-To
<BANLkTikgY_Kc6gu_iTtpiiayo9e=DPxOLw@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 7 quoted lines
> I see now that this probably doesn't fit everyone's usecase. So the
> changes I propose are:
> 1. Don't rerere clear. We can probably document this fact somewhere,
> and hint the user about this during the time of abort.
> 2. Use reset --merge as Sverre suggested.
>
> I'll think about this workflow and post a patch soon.
Please do the former but I would advice you not to do the latter.

If you do not clear rerere then you are not serving the original audience you wanted to serve, and if you do, you are hurting people when they do want to keep rerere. You cannot win either way.

The users are better off being exposed to "reset --merge" than kept unaware of the concepts necessary to do what they want hidden behind "revert --abort" that has fuzzy semantics that restores some but not all, with the definition of "some" being something we happened to decide here, which can never match what the user in every situation would want.

Previous: Ramkumar Ramachandra
Message 6 of 6 in “revert: Implement --abort processing”
  1. revert: Implement --abort processingRamkumar Ramachandra, Jun 1, 2011
  2. Sverre RabbelierJun 1, 2011
  3. Junio C HamanoJun 1, 2011
  4. Jonathan NiederJun 1, 2011
  5. Ramkumar RamachandraJun 2, 2011
  6. Junio C HamanoJun 2, 2011

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.