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

Re: [PATCH] checkout: add config variable checkout.autoDetach

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 14, 2023, 00:48 UTC
Message-ID
<xmqq7cml2m98.fsf@gitster.g>
In-Reply-To
<0e37ee23-922c-4bbf-82c3-8f44e9216ab0@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 9 quoted lines
>> and good thing to help new users.  I do not know how others react to
>> this kind of proliferation of configuration variables, but I do not
>> mind this particular variable existing.
>
> I'm a bit wary of having a config variable that could break
> scripts relying on the current behavior of "git checkout".  As far
> as "git switch" goes I don't particularly mind this config
> variable though I'm not sure it is that hard to type "--detach"
> (especially with tab completion) and

I do not have much sympathy myself to scripts that are not being defensive enough to write "--detach" explicitly, but I do understand and share your concern as the project maintainer.

> ... I do worry that we're making the UI more complex each
> time we add something like this.

Thanks for saying this---this is exactly the kind of reaction I as expecting to see.

>
> Best Wishes
>
> Phillip
Previous: Phillip Wood
Message 5 of 5 in “checkout: add config variable checkout.autoDetach”
  1. checkout: add config variable checkout.autoDetachAndy Koppe, Nov 11, 2023
  2. Junio C HamanoNov 12, 2023
  3. Andy KoppeNov 12, 2023
  4. Phillip WoodNov 13, 2023
  5. Junio C HamanoNov 14, 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.