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

Re: Sending patches via gmail

From
Jeff King <peff@peff.net>
Date
Apr 1, 2008, 11:03 UTC
Message-ID
<20080401110355.GA3777@coredump.intra.peff.net>
In-Reply-To
<57518fd10804010351x341ba728i69cfcad8f3909d6a@mail.gmail.com>
On Tue, Apr 01, 2008 at 11:51:38AM +0100, Jonathan del Strother wrote:
Show 5 quoted lines
> ...which seems to work ok, except for the fact that the From line in
> my patch (the output of git format-patch) then appears at the top of
> my message body in the resulting email (from git send-email).
> Deleting the From line from the patch seems to make everything work as
> expected.  Any ideas what's going on there?

send-email will create a "from" line in the body of the message if the "sender" (using --from, or answering "Who should the emails appear to be from") doesn't match the patch's author (the "From:" line in the generated patch, which comes from the author field of the commit). The line is interpeted by git-am to properly credit the original author.

It looks like you are committing as jon.delStrother@bestbefore.tv, but sending the emails as maillist@steelskies.com.

-Peff
Previous: Jonathan del Strother
Message 4 of 4 in “Sending patches via gmail”
  1. Jonathan del StrotherApr 1, 2008
  2. David AguilarApr 1, 2008
  3. Jonathan del StrotherApr 1, 2008
  4. Jeff KingApr 1, 2008

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.