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

Re: [PATCH 3/3] doc: give examples for send-email cc-cmd operation

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2015, 22:59 UTC
Message-ID
<xmqq615exwou.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqa8uqxxpn.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
>> I was trying to use, essentially, 'cat list.txt' as the command,...

One thing that needs to be made clear is that I do not think we want to encourage `cat list.txt #` abuse in the first place. It is an unacceptable hack for us to encourage in the longer term. It may happen to work with the current implementation, but it does so merely by depending on the implementation too much.

If it is so common to want to spray all your patches to exactly the same list of recipients that is unconditionally determined, having multiple sendemail.cc configuration variables, which are cumulative, is already one way to do so, and you do not have to type such a long option "--cc-cmd='cat $filename'" every time.

And if you do not want configuration for some reason, and having a list of addresses in a flat file is so common, we could have a new option "--cc-list=$filename" to support that use case. I however doubt anything that starts with "First you make a list of addresses in a flat file, and then do this" is a good solution.

I would think that it would probably be the best way to address "I often want to cc these recipients, but not always" is to keep a list of aliases, each entry of which expands to the recipients, and say "--cc=group" from the command line to have it expanded to the set of recipients.

Previous: Junio C HamanoNext: Philip Oakley
Message 16 of 18 in “Update send-email cc-cmd documentation”
  1. 0/3 Update send-email cc-cmd documentationPhilip Oakley, Jul 20, 2015
  2. 1/3 doc: convert send-email option headings to nounsPhilip Oakley, Jul 20, 2015
  3. 2/3 doc: send-email; expand on the meaning of 'auto-cc'Philip Oakley, Jul 20, 2015
  4. Eric SunshineJul 20, 2015
  5. 2/3 doc: send-email; expand oon the meaning of 'auto-cc'Philip Oakley, Jul 20, 2015
  6. Philip OakleyJul 20, 2015
  7. 3/3 doc: give examples for send-email cc-cmd operationPhilip Oakley, Jul 20, 2015
  8. Eric SunshineJul 20, 2015
  9. Eric SunshineJul 20, 2015
  10. Eric SunshineJul 20, 2015
  11. Philip OakleyJul 20, 2015
  12. Eric SunshineJul 20, 2015
  13. Junio C HamanoJul 20, 2015
  14. Philip OakleyJul 20, 2015
  15. Junio C HamanoJul 20, 2015
  16. Junio C HamanoJul 20, 2015
  17. Philip OakleyJul 21, 2015
  18. Junio C HamanoJul 22, 2015

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.