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

Creating attachments using git-format-patch

From
PIPanagiotis Issaris <takis.issaris@uhasselt.be>
Date
Mar 3, 2007, 21:07 UTC
Message-ID
<loom.20070303T215950-974@post.gmane.org>
Hi,

I've been trying to start using git-format-patch together with git-send-email, but I've encountered some problems. The mailinglist I want to send the patches to, requires patches to be sent as attachments. So, I tried using the --attach option of git-format-patch. However its output does not seem to generate output which Thunderbird or Mutt recognize as attachments. Has anyone noticed similar problems or am I using it incorrectly?

I'm doing it as follows: takis@poseidon:/usr/local/src/ffmpeg-pi$ git-format-patch --attach HEAD^ 0001-Modify-av_pkt_dump-and-av_hex_dump-to-be-av_logish.patch takis@poseidon:/usr/local/src/ffmpeg-pi$ git-send-email 0001-Modify-av_pkt_dump-and-av_hex_dump-to-be-av_logish.patch

Mutt shows a message containing:
This is a multi-part message in MIME format.
--------------1.5.0.1.226.g7bd59
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
...
--------------1.5.0.1.226.g7bd59
Content-Type: text/x-patch;
 name="514f2915144861b6d69ef54bd8d392aa8b3a00e6.diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="514f2915144861b6d69ef54bd8d392aa8b3a00e6.diff"
...

But it does not look like an attachment. Same happens when reading the email with Thunderbird: everything appears inline.

Any suggestions?

With friendly regards, Takis

Next: Junio C Hamano
Message 1 of 12 in “Creating attachments using git-format-patch”
  1. Panagiotis IssarisMar 3, 2007
  2. Junio C HamanoMar 3, 2007
  3. Johannes SchindelinMar 3, 2007
  4. format-patch: add --no-inline optionJohannes Schindelin, Mar 3, 2007
  5. Junio C HamanoMar 4, 2007
  6. Junio C HamanoMar 4, 2007
  7. Johannes SchindelinMar 4, 2007
  8. Panagiotis IssarisMar 4, 2007
  9. Panagiotis IssarisMar 4, 2007
  10. Junio C HamanoMar 4, 2007
  11. Panagiotis IssarisMar 4, 2007
  12. Junio C HamanoMar 5, 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.