From: Junio C Hamano <gitster@pobox.com>
To: Jiang Xin <worldhello.net@gmail.com>
Cc: Git List <git@vger.kernel.org>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH] builtin-commit.c: Not add duplicate S-o-b when commit
Date: Wed, 25 Jul 2012 23:44:14 -0700 [thread overview]
Message-ID: <7vy5m781j5.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <ee08efceaa3f015732a19d49eb96bdeeaaf3d609.1343282283.git.worldhello.net@gmail.com> (Jiang Xin's message of "Thu, 26 Jul 2012 14:01:19 +0800")
Jiang Xin <worldhello.net@gmail.com> writes:
> 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.
next prev parent reply other threads:[~2012-07-26 6:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-26 6:01 [PATCH] builtin-commit.c: Not add duplicate S-o-b when commit Jiang Xin
2012-07-26 6:44 ` Junio C Hamano [this message]
2012-07-26 7:15 ` Jiang Xin
2012-07-26 16:44 ` Junio C Hamano
2012-07-27 1:07 ` Jiang Xin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vy5m781j5.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=worldhello.net@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).