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 27, 2007, 19:49 UTC
Message-ID
<7vslalmwcx.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<ps5qyry4.fsf@cante.net>
Jari Aalto <jari.aalto@cante.net> writes:
Show 5 quoted lines
> FEAURE REQUEST
> --------------
>
> Add sme option to git-format-path to encode thae patch content 
> (MIME/base64)

One possibility is to have a separate mail sending or formatting program that works on format-patch output. In any case, I feel that _generating_ base64 natively does not belong to core git. We _tolerate_ MIME in mailinfo, but that does not mean we encourage MIME. Keeping patches reviewable in recipient's MUA is important.

Now, after having given the "official" party-line answer, I personally think it would make sense to always do base64 when attaching the patch (i.e. "--attach", not "--inline").

In the community git originates from, even --inline attachments are frowned upon, let alone --attach multiparts (yes, I am talking about the kernel list and this list). Nobody who sends patches over e-mail in communities that have a tradition against unreadable patches would be using --inline nor --attach anyway, so making --attach to do base64 would not hurt there.

On the other hand, in circles whose recipients are prepared to (or even "prefer to") accept messages formatted with --attach, there should be no harm done if the patch text is base64 encoded either.

Am I going to do it? Not likely. But if a patch is cleanly done, I do not think there is much reason to reject one.

Previous: Johannes SchindelinNext: Robin H. Johnson
Message 6 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.