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

Re: git-send-email --suppress-from option doesn't work.

From
TTTimur Tabi <timur@freescale.com>
Date
Jan 25, 2007, 16:47 UTC
Message-ID
<45B8DF24.6080001@freescale.com>
In-Reply-To
<45B01DD4.7000204@op5.se>
Andreas Ericsson wrote:
Show 7 quoted lines
> 
> I believe
> 
> 	(/^(Cc|From):[^<]+<([^>])+>.*$/)
> 
> would do the trick for your case. It would however fail when specifying a proper
> --from address in the 'git commit --author="Foo Barson <foo@barson.com>"' style.

Even so, it would still be very picky about the layout. --suppress-from should just compare the actual email addresses, not the names or any other characters.

> Are you sure you need to specify --from for those patches though?
Yes.  If I don't specify --from, then git-send-email will prompt me for the 
From: address.  I want git-send-email to be completely non-interactive.
Show 6 quoted lines
>> Some of you might say at this point, "Why don't you  just specify --from
>> "Timur Tabi <timur@freescale.com>"?  I tried that, and it still doesn't
>> work.
> 
> That sounds extremely odd indeed. Could this have to do with character
> conversion?
Actually, I figured out the problem is that I can't do this:

FROM='--from "Foo Barson <foo@barson.com>"' git-send-email $FROM ...

I got all sorts of weird messages about unbalanced > or something. Instead, I need to do this:

FROM="Foo Barson <foo@barson.com>" git-send-email --from $FROM ...

This is probably a shell issue instead of a git-send-email issue, but it is annoying.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale
Previous: Andreas Ericsson
Message 3 of 3 in “git-send-email --suppress-from option doesn't work.”
  1. Timur TabiJan 18, 2007
  2. Andreas EricssonJan 19, 2007
  3. Timur TabiJan 25, 2007

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.