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

Re: [PATCH v4] send-email: prompt-dependent exit codes

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Aug 11, 2023, 12:11 UTC
Message-ID
<ZNYljcYTKHZ6hAyR@ugly>
In-Reply-To
<xmqq5y5msmc0.fsf@gitster.g>
On Thu, Aug 10, 2023 at 12:56:31PM -0700, Junio C Hamano wrote:
>I have no problem with giving the command an option to allow it to
>report if one or more messages were held back via its exit status.
>

that doesn't give credit to the observation that there is an opportunity cost to not doing it automatically. it is much easier to imagine that a scripting user simply didn't consider the possibility of an interactive cancellation than that they really meant to ignore it. therefore, the status quo is very likely more harmful than the fallout of starting to more aggressively report the situation.

>Others may even want to know which ones among many messages weren't
>sent, not just "there were some that weren't sent", to make it
>easier to identify which ones to be resent after touching them up.
>

yeah, i've considered that as well. i think that on the exit status side my solution is adequate - it reports in a sufficiently distinctive way that something didn't go quite as probably expected.

going further, i'm considering producing a mapping from sha1s to message-ids (which i'd persist for automatic chaining of re-rolls). this would provide the fine-grained reporting as a side effect.

regards
Previous: Junio C HamanoNext: Oswald Buddenhagen
Message 13 of 18 in “send-email: prompt-dependent exit codes”
  1. send-email: prompt-dependent exit codesOswald Buddenhagen, Apr 26, 2023
  2. Junio C HamanoApr 27, 2023
  3. Felipe ContrerasMay 2, 2023
  4. send-email: prompt-dependent exit codesOswald Buddenhagen, Aug 7, 2023
  5. Junio C HamanoAug 7, 2023
  6. Oswald BuddenhagenAug 8, 2023
  7. Junio C HamanoAug 8, 2023
  8. Oswald BuddenhagenAug 8, 2023
  9. send-email: prompt-dependent exit codesOswald Buddenhagen, Aug 9, 2023
  10. Junio C HamanoAug 9, 2023
  11. Oswald BuddenhagenAug 10, 2023
  12. Junio C HamanoAug 10, 2023
  13. Oswald BuddenhagenAug 11, 2023
  14. send-email: prompt-dependent exit codesOswald Buddenhagen, Aug 21, 2023
  15. Junio C HamanoAug 21, 2023
  16. Oswald BuddenhagenAug 21, 2023
  17. Junio C HamanoAug 30, 2023
  18. Oswald BuddenhagenAug 30, 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.