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

Re: [PATCH v1 1/3] dir.c: coding style fix

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 15, 2014, 19:10 UTC
Message-ID
<xmqqpph6v3op.fsf@gitster.dls.corp.google.com>
In-Reply-To
<53C579B4.2050506@gmail.com>
Karsten Blees <karsten.blees@gmail.com> writes:
Show 19 quoted lines
> Am 15.07.2014 00:30, schrieb Junio C Hamano:
>> Karsten Blees <karsten.blees@gmail.com> writes:
>> 
>>> From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?=
>>>  <pclouds@gmail.com>
>>>
>>> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
>>> Signed-off-by: Karsten Blees <blees@dcon.de>
>>> ---
>> 
>> Thanks for forwarding.   I'll fix-up the Yikes (see how these two
>> lines show the same name in a very different way), but how did you
>> produce the above?  Is there some fix we need in the toolchain that
>> produces patch e-mails?
>> 
>
> Hmmm...I simply thought that this is how its supposed to work. Mail
> headers can only contain US-ASCII, so the RFC 2047 Q-encoded-word
> generated by git-format-patch looked good to me.

But that quoted one is *NOT* a mail header. It is the first line of the payload of your message, and should be in plain text just like the remainder, e.g. S-o-b line that has the same name.

> Perhaps it should be clarified that git-format-patch output is not
> suitable for pasting into mail clients? Or it should print headers
> in plain text and let git-send-email handle the conversions?

If the former is missing, then we should definitely add it to the documentation. We often see new people pasting the "From " line meant for /etc/magic and unwanted {From,Subject,Date}: in the body.

We may also want to add an option to tell it to produce an output that is suitable for pasting into mail clients. Hint, hint...

Previous: Karsten Blees
Message 6 of 6 in “dir.c: coding style fix”
  1. 1/3 dir.c: coding style fixKarsten Blees, Jul 14, 2014
  2. 2/3 dir.h: move struct exclude declaration to top levelKarsten Blees, Jul 14, 2014
  3. 3/3 prep_exclude: remove the artificial PATH_MAX limitKarsten Blees, Jul 14, 2014
  4. Junio C HamanoJul 14, 2014
  5. Karsten BleesJul 15, 2014
  6. Junio C HamanoJul 15, 2014

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.