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
Junio C Hamano <gitster@pobox.com>
Date
May 8, 2023, 19:18 UTC
Message-ID
<xmqqzg6eocmi.fsf@gitster.g>
In-Reply-To
<CAPMMpoi74RFBptKkv23FSK-fQsnuan9EK5HodUBRLNtxLYdr_w@mail.gmail.com>
Tao Klerks <tao@klerks.biz> writes:
Show 6 quoted lines
> The question, I understand, is whether there should be a "git -c
> core.suckycheckoutstatemanagement=true checkout" option *just in
> case*, so any affected automation users could set it, fix their
> affected automated processes, and then remove it, before we finally
> remove the "core.suckycheckoutstatemanagement" option in a subsequent
> release.

If a new behaviour is hidden behind a new option nobody has heard of before, you would not risk breaking anybody who wrote their scripts long time ago and have relied on them the way they currently work, and the new option would not have to be removed at all. I think the "switch" was written exactly for such a transition so that folks who wanted a different behaviour do not have to break existing users of "checkout".

Do we still mark "switch" as experimental in bold red letters in the documentation? Then it is not too late to improve the end-user experimence with the command without worrying about too much about backward compatibility.

Previous: Tao KlerksNext: Felipe Contreras
Message 13 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.