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

Re: [PATCH 1/2] am: add explicit "--retry" option

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Jun 10, 2024, 08:36 UTC
Message-ID
<16a6b206-1733-4d64-89e6-c3e2368903ac@gmail.com>
In-Reply-To
<20240608112920.GC2966571@coredump.intra.peff.net>
Hi Peff and Junio
On 08/06/2024 12:29, Jeff King wrote:
Show 7 quoted lines
> On Thu, Jun 06, 2024 at 09:48:52AM -0700, Junio C Hamano wrote:
>> Junio C Hamano <gitster@pobox.com> writes:
>>> Jeff King <peff@peff.net> writes:
> But I do think as a general rule we should never provide any action
> _only_ through heuristics like "is stdin a tty". We should let the user
> be explicit, and use heuristics to guess the right thing when they don't
> feel like being so.
I agree that's a good general rule to have
>>> "--retry" is a horrible word, in that it makes it sound like it will
>>> keep trying to apply the same patch over and over until it applies
>>> cleanly or something.

"retry" means "try once more", so I think it is a reasonable name for this option. (Programs often retrying a failing operation in a loop but then they are retrying many times.)

I haven't looked at these patches in detail so I cannot comment on the code changes but I do think the general aim is a good one.

Best Wishes
Phillip
Previous: Jeff KingNext: Jeff King
Message 6 of 9 in “dropping stdin support from test-terminal”
  1. 0/2 dropping stdin support from test-terminalJeff King, Jun 6, 2024
  2. 1/2 am: add explicit "--retry" optionJeff King, Jun 6, 2024
  3. Junio C HamanoJun 6, 2024
  4. Junio C HamanoJun 6, 2024
  5. Jeff KingJun 8, 2024
  6. Phillip WoodJun 10, 2024
  7. 2/2 test-terminal: drop stdin handlingJeff King, Jun 6, 2024
  8. Rubén JustoJun 6, 2024
  9. Rubén JustoJun 6, 2024

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.