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

Re: [PATCH] typo: fix the typo 'neeed' into 'needed' in the comment under merge-ort.c

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 20, 2023, 17:06 UTC
Message-ID
<xmqqfs25rzo1.fsf@gitster.g>
In-Reply-To
<facb06e0-9ad7-40eb-83e3-0a951931496d@gmail.com>
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 9 quoted lines
> On 20/10/2023 09:14, 王常新 wrote:
>> It is my official name. But the email address is not a valid one. Should I rewrite the commit message?
>> 
>
> Please don't top-post, reply inline with appropriate context instead.
>
> Did you mean that you can't receive ML traffic on your @qq.com address?
> If so, resend with your @gmail.com address as patch author (you need
> to set user.name and user.email accordingly). 
Isn't that opposite from what we would normally recommend, though?

If the true authorship e-mail is in an environment where sending patches are inconvenient, you would still want to do your commits under the identity you want to appear in the final history of the project, so you do not futz with user.name and user.email; you'd send a message with in-body header that shows an extra From: line (followed by a blank line) that records the true authorship from an environment whose sender e-mail address may differ.

E.g.  You would see these fields in the e-mail heeader:
	From: 王常新 <wchangxin824@gmail.com>
	Subject: [PATCH] merge-ort.c: comment typofix

and your message would begin like so (indented only for illustration purposes---the real one should be flushed to the left edge of the page):

	From: 王常新 <real-email-address-of-mr-wang@do.ma.in>
	There is 'needed' misspelt as 'neeed' in the source file;
	fix it.
	Signed-off-by: 王常新 <real-email-address-of-mr-wang@do.ma.in>

This feature is designed so that other people, different from the author of the patch, can relay it to the recipient(s) while preserving the authorship information.

Although it is not needed in this case, you can override "Subject:" the same way with an in-body header, like so:

	From: 王常新 <real-email-address-of-mr-wang@do.ma.in>
	Subject: real title of the patch to be used
	There is 'needed' misspelt as 'neeed' in the source file;
	fix it.
	Signed-off-by: 王常新 <real-email-address-of-mr-wang@do.ma.in>
and it would replace what we read from the Subject: e-mail header.
Previous: Bagas SanjayaNext: Bagas Sanjaya
Message 5 of 9 in “typo: fix the typo 'neeed' into 'needed' in the comment under merge-ort.c”
  1. typo: fix the typo 'neeed' into 'needed' in the comment under merge-ort.c王常新, Oct 19, 2023
  2. Junio C HamanoOct 19, 2023
  3. 王常新Oct 20, 2023
  4. Bagas SanjayaOct 20, 2023
  5. Junio C HamanoOct 20, 2023
  6. Bagas SanjayaOct 21, 2023
  7. Junio C HamanoOct 20, 2023
  8. 王常新Oct 21, 2023
  9. Junio C HamanoOct 21, 2023

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.