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

Re: What's cooking in git.git (Jan 2025, #05; Fri, 17)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 21, 2025, 19:23 UTC
Message-ID
<xmqq5xm80y53.fsf@gitster.g>
In-Reply-To
<Z43y0mNhHsEdF22L@gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 14 quoted lines
> (The text below is from the original thread; sorry I don't have it handy
> so I just replied here instead)
>
>> ... but would it be simpler if we made it an extended boolean, i.e.
>> 
>>     true, yes, on, 1  -> same as "immediate"
>>     false, no, off, 0 -> same as "never"
>>     immediate         -> same as what we currently do
>>     never             -> same as what we currently do
>>     prompt            -> same as what we currently do
>>     number            -> same as what we currently do
>
> I do think that, "0 -> same as never," makes a lot of sense from a
> usability perspective.

I obviously do not agree. "Suggest the right spelling and let the user decide without time-bomb" is a very useful and safe UI, and the above summary was done by mistake.

> I would instead recommend that, "1 -> same as prompt," would be a safer
> and less surprising behavior. If the user wants "immediate" they can be
> explicit about it. "immediate" is the most dangerous of all of these
> options so adding ambiguous routes to it seems like a step backwards.
Thanks for raising your concern.

As somebody who does *not* use the time-bomb UI that makes me wait when the heuristics guessed correctly and forces me to scramble to hit \C-c when it didn't, I am not qualified to comment in favor of such a huge behaviour change, so I won't, and let others discuss.

> I don't really think backwards-compatibility is much of a concern here
> at all. It *would* be a concern if we were moving from a safe behavior
> to a less-safe behavior (like this patch currently does) but not so in
> the other direction like I'm proposing by making "1" mean "prompt".
Previous: David AguilarNext: Derrick Stolee
Message 9 of 23 in “What's cooking in git.git (Jan 2025, #05; Fri, 17)”
  1. Junio C HamanoJan 18, 2025
  2. Jeff KingJan 18, 2025
  3. Junio C HamanoJan 18, 2025
  4. Jeff KingJan 19, 2025
  5. Jeff KingJan 19, 2025
  6. Junio C HamanoJan 21, 2025
  7. David AguilarJan 20, 2025
  8. help: make help.autocorrect = 1 the same as "prompt"David Aguilar, Jan 20, 2025
  9. Junio C HamanoJan 21, 2025
  10. Derrick StoleeJan 21, 2025
  11. Junio C HamanoJan 21, 2025
  12. Taylor BlauJan 22, 2025
  13. Junio C HamanoJan 22, 2025
  14. Taylor BlauJan 23, 2025
  15. Junio C HamanoJan 23, 2025
  16. Karthik NayakJan 22, 2025
  17. Karthik NayakJan 22, 2025
  18. Junio C HamanoJan 22, 2025
  19. Junio C HamanoJan 23, 2025
  20. Patrick SteinhardtJan 23, 2025
  21. Junio C HamanoJan 23, 2025
  22. Karthik NayakJan 24, 2025
  23. Junio C HamanoJan 24, 2025

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.