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

Re: [PATCH] RFC: switch: allow same-commit switch during merge if conflicts resolved

From
Elijah Newren <newren@gmail.com>
Date
May 7, 2023, 02:57 UTC
Message-ID
<CABPp-BGtRF68YJaN+nQ6bCqeh4R-dC9a6mBZvAFkX9YbkFR3sQ@mail.gmail.com>
In-Reply-To
<CAPMMpoi7+rdQzQPyVB8T9Pb+f332c68QvWLkwBdJZw=BcP0jbQ@mail.gmail.com>
On Thu, May 4, 2023 at 10:06 PM Tao Klerks <tao@klerks.biz> wrote:
>
[...]
> ASIDE: I realized today that the warnings in
> die_if_some_operation_in_progress() suggest "--quit" (potentially
> leaving a conflicted index) and do not mention "--abort". Is there any
> objection to beefing up these messages a bit to offer both options?
Honestly, I'd prefer to just change them to --abort.

--quit is for very unusual expert situations (I did the operation, forgot I was in the middle, did all kinds of funny resets and tweaks and who-knows-what, and then later discovered there was an in-progress operation I had forgotten, but I decided I liked my totally munged state better and want to keep it while somehow marking the operation as over.[1]) I think recommending it to users is a bit of a disservice. If someone feels strongly about keeping it, I'd argue for having both --abort and --quit, with --abort more prominent.

But my first vote would be for changing these to mention --abort. And adding some scary warnings to the places where --quit is documented, to recommend users consider --abort instead.

[1] That might sound like an exaggeration, but I think that's exactly how it was advertised originally: 9512177b682 ("rebase: add --quit to cleanup rebase, leave everything else untouched", 2016-11-12)

Previous: Tao KlerksNext: Elijah Newren
Message 7 of 17 in “RFC: switch: allow same-commit switch during merge if conflicts resolved”
  1. RFC: switch: allow same-commit switch during merge if conflicts resolvedTao Klerks via GitGitGadget, May 2, 2023
  2. Elijah NewrenMay 2, 2023
  3. Junio C HamanoMay 2, 2023
  4. Elijah NewrenMay 3, 2023
  5. Tao KlerksMay 4, 2023
  6. Tao KlerksMay 5, 2023
  7. Elijah NewrenMay 7, 2023
  8. Elijah NewrenMay 7, 2023
  9. Felipe ContrerasMay 7, 2023
  10. Tao KlerksMay 8, 2023
  11. Felipe ContrerasMay 8, 2023
  12. Tao KlerksMay 8, 2023
  13. Junio C HamanoMay 8, 2023
  14. Felipe ContrerasMay 9, 2023
  15. Tao KlerksMay 8, 2023
  16. Elijah NewrenMay 11, 2023
  17. Tao KlerksMay 21, 2023

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.