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

How to use --cc-cmd in git-send-email?

From
Philip Oakley <philipoakley@iee.org>
Date
Jul 19, 2015, 22:02 UTC
Message-ID
<CA64425B296E41328D6A1F29E227A24D@PhilipOakley>

I've been using git-send-email with repeated individual --cc="email address" parameters on the command line.

I tried putting all the addresses, one per line, into a file 'cc-cmd', so I could use if for the --cc-cmd option.

I then tried to use --cc-cmd='cat cc-cmd' to do the send-email (as a --dry-run). This produced, as part of the output, a list of the output of the cc-cmd, which showed not only the file contents, but this was then followed by the full patch, as if it was part of the list of email addresses.

Finally, at the end of the inclusion of the patch, I got

(cc-cmd) Adding cc: -- from: 'cat cc-cmd' (cc-cmd) Adding cc: 2.4.2.windows.1.5.gd32afb6 from: 'cat cc-cmd' (cc-cmd) Adding cc: from: 'cat cc-cmd' error: unable to extract a valid address from: What to do with this address? ([q]uit|[d]rop|[e]dit):

Could this have been caused by an extra (blank) line at the end of the cc-cmd file?

Also, does anyone have an example of a working --cc-cmd option?
(this is on g4w: git version 2.3.1)
Philip 
Next: Eric Sunshine
Message 1 of 6 in “How to use --cc-cmd in git-send-email?”
  1. Philip OakleyJul 19, 2015
  2. Eric SunshineJul 20, 2015
  3. Philip OakleyJul 20, 2015
  4. Eric SunshineJul 20, 2015
  5. Philip OakleyJul 20, 2015
  6. Eric SunshineJul 20, 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.