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

Re: [PATCH] builtin-commit.c: Not add duplicate S-o-b when commit

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2012, 06:44 UTC
Message-ID
<7vy5m781j5.fsf@alter.siamese.dyndns.org>
In-Reply-To
<ee08efceaa3f015732a19d49eb96bdeeaaf3d609.1343282283.git.worldhello.net@gmail.com>
Jiang Xin <worldhello.net@gmail.com> writes:
Show 21 quoted lines
> Scan the whole rfc2822 footer for duplicate S-o-b, not just the last
> line of the commit message.
>
> A commit may have multiple S-o-bs, or other tags, such as:
>
>     some commit log...
>
>     Signed-off-by: C O Mitter <committer@example.com>
>     Reported-by: R E Porter <reporter@example.com>
>
> Because the S-o-b is not located at the last line in the above commit,
> when the above commit is amended by the original committer, a
> duplicated S-o-b may appended by accident. New commit log may looks
> like:
>
>     some commit log...
>
>     Signed-off-by: C O Mitter <committer@example.com>
>     Reported-by: R E Porter <reporter@example.com>
>     Signed-off-by: C O Mitter <committer@example.com>
>

After stating the observation like the above, please make it a habit to say "which is bad because...", if you think it is a bad behaviour and the patch is about fixing it.

Because a chain of S-o-b is used to record the flow of a patch, it is entirely normal if developer A writes the patch (she signs it off), reviewer B picks it up and sends it back with a minor fix-up to the list, and developer A again picks it up from the list and forwards it to the uplevel maintainer, in which case you may see S-o-b by A, then B (it may be S-o-b or something else, e.g. Reviewed-by) and then S-o-b by A again.

The above observation is correct (a commit log may look like so), but your untold conclusion (it is a bad thing because there are S-o-b from the same person twice) is not necessarily correct.

Previous: Jiang XinNext: Jiang Xin
Message 2 of 5 in “builtin-commit.c: Not add duplicate S-o-b when commit”
  1. builtin-commit.c: Not add duplicate S-o-b when commitJiang Xin, Jul 26, 2012
  2. Junio C HamanoJul 26, 2012
  3. Jiang XinJul 26, 2012
  4. Junio C HamanoJul 26, 2012
  5. Jiang XinJul 27, 2012

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.