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

Re: [PATCH] describe-doc:fix a obscure error description in the git log documentation

From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date
May 31, 2021, 10:00 UTC
Message-ID
<YLSzxIyULB1CcIdQ@danh.dev>
In-Reply-To
<f34de283-d749-854a-0ed0-d4e244dc259b@gmail.com>
On 2021-05-31 14:49:32+0700, Bagas Sanjaya <bagasdotme@gmail.com> wrote:
Show 17 quoted lines
> Hi Đoàn,
> 
> On 31/05/21 13.47, Đoàn Trần Công Danh wrote:
> > On 2021-05-31 06:00:56+0000, Andy AO via GitGitGadget <gitgitgadget@gmail.com> wrote:
> > > From: zen96285 <zen96285@gmail.com>
> > > 
> > > The git log documentation says "The default option is 'short'." This is wrong. After testing, the default value of '--decorate' is 'auto', not 'short'.
> > > 
> > > There is no difference between 'auto' and 'short' in terminal, but there is a significant difference in how they behave in the shell.The information generated by the 'short' can be saved in shell variables, while the 'auto' can't.
> > 
> > Please use your real name and wrap your commit message at 50
> > characters for subject line and 72 characters for body.
> 
> I think the case here was Andy forwarded this patch from someone, which
> happened to be also himself. Maybe that From: line above can be removed,
> unless that he forwarded from other people (in which From: line must be
> preserved).

Andy is using GitGitGadget bridge. That bridge uses its own email address (gitgitgadget@gmail.com).

Thus, the identity in the RFC 822's header: "From" should be ignored, and we should use the "From: " line in body instead.

In principle, GitGitGadget will use the Author identity in the commit that was pushed into GitHub to generate such "From: " line. So, it's Andy's resposibility to configure correct core.name and core.email in Andy's machine, and create a commit with correct authorship. Otherwise, GitGitGadget will create above message.

Hope that help.
-- 
Danh
Previous: Bagas SanjayaNext: Đoàn Trần Công Danh
Message 7 of 8 in “describe-doc:fix a obscure error description in the git log documentation”
  1. describe-doc:fix a obscure error description in the git log documentationAndy AO via GitGitGadget, May 31, 2021
  2. Bagas SanjayaMay 31, 2021
  3. Đoàn Trần Công DanhMay 31, 2021
  4. Junio C HamanoMay 31, 2021
  5. Đoàn Trần Công DanhMay 31, 2021
  6. Bagas SanjayaMay 31, 2021
  7. Đoàn Trần Công DanhMay 31, 2021
  8. doc/log: correct default for --decorateĐoàn Trần Công Danh, Jun 8, 2021

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.