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

Re: Should sendemail.confirm default to always?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 21, 2022, 20:04 UTC
Message-ID
<xmqq8rrygq42.fsf@gitster.g>
In-Reply-To
<20220421194832.lshqkl3bogy2f2hy@eve>
Alyssa Ross <hi@alyssa.is> writes:
Show 7 quoted lines
> I was recently having a conversation with some people used to the
> GitHub-style Pull Request workflow, who told me that they feel scared of
> using git send-email in case they make a mistake and e.g. get the
> recipients wrong, since they can't correct it after sending.  They can
> resend, but if they do that they'll feel like they're bothering some
> very busy people by having sent them the same message twice (regardless
> of whether those people are actually bothered by it, it's scary).

If it truly makes sense to give a roadblock before sending to prevent mistakes, I wonder if making "--dry-run" the default is even a better idea. Getting "are you sure [y/n]?" and saying "yes" out of inertia is much more likely to happen than typing Ctrl-P on the command line to take the previous command (which did a dry-run by default) back on the command line and then adding "--no-dry-run" on the command line to allow the command to actually send out the files.

Another idea is to forbid the form of "git send-email" invocation that internally runs format-patch by default and force users to prepare format-patch into files beforehand. Doing the format-patch as a completely separate step means that the user has a final chance to proofread the log messages (and correct them as needed) while adding and verifying CC's, and removes the pressure of "pressing this button is a point of no return; did I catch all the embarrassing mistakes?" at the last second.

Previous: Junio C HamanoNext: Alyssa Ross
Message 14 of 15 in “Should sendemail.confirm default to always?”
  1. Alyssa RossApr 21, 2022
  2. Ævar Arnfjörð BjarmasonApr 21, 2022
  3. Junio C HamanoApr 21, 2022
  4. Failures in t9001-send-emailAlyssa Ross, Apr 21, 2022
  5. rsbecker@nexbridge.comApr 21, 2022
  6. Alyssa RossApr 22, 2022
  7. rsbecker@nexbridge.comApr 22, 2022
  8. Johannes SixtApr 22, 2022
  9. Junio C HamanoApr 22, 2022
  10. Alyssa RossApr 22, 2022
  11. send-email: always confirm by defaultAlyssa Ross, Apr 22, 2022
  12. Ævar Arnfjörð BjarmasonApr 22, 2022
  13. Junio C HamanoApr 22, 2022
  14. Junio C HamanoApr 21, 2022
  15. Alyssa RossApr 21, 2022

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.