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

[BUG] "--show-current-patch" return a mail instead of a patch

From
Jerome Pouiller <jerome.pouiller@silabs.com>
Date
Oct 22, 2019, 10:18 UTC
Message-ID
<2154192.LVDMpRDY2h@pc-42>
Hello all,

I try to use "git am" to apply a patch sent using "git send-email". This patch does not apply properly. I try to use "git am --show-current-patch" to understand the problem. However, since original mail is encoded in quoted- printable, data returned by --show-current-patch is not a valid patch.

I expected that --show-current-patch would return decoded version of original mail or something that looks like the output of "git format-patch" or at least a valid patch. Thus, it could be processed with "git apply" or "patch".

Currently I run "git mailinfo" manually to get the patch, but it is not very handy.

(I use git version 2.20.1 from Debian buster)
Thank you,
-- 
Jérôme Pouiller
Next: Junio C Hamano
Message 1 of 7 in “[BUG] "--show-current-patch" return a mail instead of a patch”
  1. Jerome PouillerOct 22, 2019
  2. Junio C HamanoOct 23, 2019
  3. Jerome PouillerOct 23, 2019
  4. Denton LiuOct 23, 2019
  5. Jerome PouillerOct 23, 2019
  6. Denton LiuOct 23, 2019
  7. Jerome PouillerOct 23, 2019

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.