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
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 7, 2023, 22:01 UTC
Message-ID
<64581fc358ede_4e6129442@chronos.notmuch>
In-Reply-To
<CABPp-BGmPKyNcDa-wUh-oisTvvux+X=6BvGxSNQC2O7uodpFrA@mail.gmail.com>
Elijah Newren wrote:
> On Wed, May 3, 2023 at 10:01 PM Tao Klerks <tao@klerks.biz> wrote:
Show 5 quoted lines
> > If we are comfortable changing the behavior of branch checkout to be
> > safe-and-limiting like switch, then that should be almost as simple as
> > removing that condition.
> 
> I've never heard a dissenting vote against this
Here is my dissenting vote: I'm against this change.

If I want to use a high-level command meant for novices, I use `git switch`. If instead I simply want to switch to a different commit and I want git to shut up about it, then I use `git checkout`.

You want to strip away the options for experts, in search for what?
If there was a way of doing:
  git -c core.iknowwhatimdoing=true checkout $whatever
Then I wouldn't oppose such change.

But this is not the proposal. The proposal is to break backwards compatibility for expert users with no way to retain the existing behavior.

Generally, breaking backwards compatibility for no reason is frowned upon.
-- 
Felipe Contreras
Previous: Elijah NewrenNext: Tao Klerks
Message 9 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.