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

Re: [PATCH] Add MIME information to outgoing email

From
Jeff King <peff@peff.net>
Date
Mar 14, 2008, 13:29 UTC
Message-ID
<20080314132949.GC2932@coredump.intra.peff.net>
In-Reply-To
<2008-03-13-18-14-36+trackit+sam@rfc1149.net>
On Thu, Mar 13, 2008 at 06:14:36PM +0100, Samuel Tardieu wrote:
Show 5 quoted lines
> | It's supposed to handle this automatically if the commit message
> | contains non-ascii characters. What version of git were you using?
> 
> A version from "next" from March 8:
> ea6cde37d54121c5a1e1da51e1cd5cf27bfa3904 (+ 1 unrelated patch)
Hmm, that is certainly recent enough.
> E.g, does "git format-patch a1eebf~1..a1eebf" add MIME headers for you
> without my patch?
Sorry, I don't have that commit. What repo is it in?
It does work for me with this simple test:
  mkdir repo && cd repo && git init
  echo content >file && git add file && git commit -m one
  echo more >>file && git commit -a -m 'two
  utf8 body: ñ'
  git format-patch HEAD^
  cat 0001-two.patch
I get:
-- >8 --
From a9e3222c0dca0a2b1e1a53ab9b7a7526ed359b79 Mon Sep 17 00:00:00 2001
From: Jeff King <peff@peff.net>
Date: Fri, 14 Mar 2008 09:27:30 -0400
Subject: [PATCH] two
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
utf8 body: ñ
---
 file |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/file b/file
index d95f3ad..94b334d 100644
--- a/file
+++ b/file
@@ -1 +1,2 @@
 content
+more
-- 
1.5.4.4.553.g83e84.dirty
-- 8< --

So I assume there is some bug in git that is being triggered by the
commit you mention.

-Peff
Previous: Samuel TardieuNext: Samuel Tardieu
Message 4 of 25 in “Add MIME information to outgoing email”
  1. Add MIME information to outgoing emailSamuel Tardieu, Mar 13, 2008
  2. Jeff KingMar 13, 2008
  3. Samuel TardieuMar 13, 2008
  4. Jeff KingMar 14, 2008
  5. Samuel TardieuMar 14, 2008
  6. Jeff KingMar 14, 2008
  7. Samuel TardieuMar 14, 2008
  8. Jeff KingMar 14, 2008
  9. Samuel TardieuMar 14, 2008
  10. Junio C HamanoMar 14, 2008
  11. Re* [PATCH] Add MIME information to outgoing emailJunio C Hamano, Mar 14, 2008
  12. Jeff KingMar 14, 2008
  13. Junio C HamanoMar 13, 2008
  14. Samuel TardieuMar 13, 2008
  15. Brian SwetlandMar 14, 2008
  16. Samuel TardieuMar 14, 2008
  17. MIME headers in introductory message (git send-email --compose)Teemu Likonen, Mar 25, 2008
  18. Jay SoffianMar 25, 2008
  19. Junio C HamanoMar 25, 2008
  20. Jay SoffianMar 25, 2008
  21. Jeff KingMar 25, 2008
  22. Jeff KingMar 25, 2008
  23. Jeff KingMar 25, 2008
  24. Jay SoffianMar 26, 2008
  25. Jan HudecApr 10, 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.