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

Re: FEATURE REQUEST: git-format-path: Add option to encode patch content

From
Junio C Hamano <junkio@cox.net>
Date
Apr 30, 2007, 22:18 UTC
Message-ID
<7vtzuxbj5h.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<873b2ho73n.wl%cworth@cworth.org>
Carl Worth <cworth@cworth.org> writes:
Show 8 quoted lines
> On Fri, 27 Apr 2007 17:56:46 -0700, Junio C Hamano wrote:
>> ...
>>                                      I would like to know if
>> you have or do not have problem with base64 ones, as that is
>> what indicates your opinion on making --attach unconditionally
>> do base64 which was the suggestion made in the thread.
>
> I definitely have a problem with base64-encoded patches.

Thanks, and I agree with everything you said why base64 is inconvenient. So _if_ somebody does an enhancement to do base64, it needs to be a separate option.

Honestly speaking, though, I think that kind of "attachment" should be left to MUA, not format-patch. If somebody knows his MUA has a tendency to corrupt in-line text, tell the MUA to attach the format-patch output stored in the filesystem as an application/octet-stream attachment. MUA may or may not do base64 or QP but at that point the only thing the user cares about is a byte-for-byte faithful reproduction at the recipient's end, and he does not worry a whit about readability), so either base64 or QP would suffice. And the format-patch does not have to care.

Previous: Carl Worth
Message 20 of 20 in “FEATURE REQUEST: git-format-path: Add option to encode patch content”
  1. Jari AaltoApr 27, 2007
  2. Johannes SchindelinApr 27, 2007
  3. Jari AaltoApr 27, 2007
  4. Alex RiesenApr 27, 2007
  5. Johannes SchindelinApr 28, 2007
  6. Junio C HamanoApr 27, 2007
  7. Robin H. JohnsonApr 27, 2007
  8. Carl WorthApr 27, 2007
  9. Junio C HamanoApr 27, 2007
  10. Linus TorvaldsApr 27, 2007
  11. Carl WorthApr 27, 2007
  12. Linus TorvaldsApr 27, 2007
  13. Linus TorvaldsApr 27, 2007
  14. Carl WorthApr 27, 2007
  15. Linus TorvaldsApr 28, 2007
  16. Junio C HamanoApr 28, 2007
  17. Carl WorthApr 30, 2007
  18. Junio C HamanoApr 28, 2007
  19. Carl WorthApr 30, 2007
  20. Junio C HamanoApr 30, 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.