Linus Torvalds <torva...@linux-foundation.org> writes:

> but the failing cases have a comment by Andrew:
>
>     [a...@linux-foundation.org: coding-style fixes]
>     Signed-off-by: Tang Chen <tangc...@cn.fujitsu.com>
>     Cc: Xishi Qiu <qiuxi...@huawei.com>
>     Cc: Yasuaki Ishimatsu <isimatu.yasu...@jp.fujitsu.com>
>     Cc: Kamezawa Hiroyuki <kamezawa.hir...@jp.fujitsu.com>
>     Cc: Taku Izumi <izumi.t...@jp.fujitsu.com>
>     Cc: Gu Zheng <guz.f...@cn.fujitsu.com>
>     Cc: Naoya Horiguchi <n-horigu...@ah.jp.nec.com>
>     Cc: Vlastimil Babka <vba...@suse.cz>
>     Cc: Mel Gorman <mgor...@techsingularity.net>
>     Cc: David Rientjes <rient...@google.com>
>     Cc: <sta...@vger.kernel.org>        [4.2.x]
>     Signed-off-by: Andrew Morton <a...@linux-foundation.org>
>
>     Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
>
> ie that "[a...@linux-foundation.org: coding-style fixes]" makes git am
> now decide that the previous block of text was not a sign-off block,
> so it adds an empty line before adding my sign-off. But very obviously
> it *was* a sign-off block.

Ahh, OK, scratch what I said earlier.  The user intended this to be
sign-off block, but the convention append_signoff() was taught from
very earlier days is that the sign-off block must consist of block
of text all of which look like rfc2822 "keyword: value" header lines,
and the comment thing makes it a non-conforming header.

Perhaps

    A block of text at the end of the existing text could be a
    signature block.  If all its lines that are rfc2822-like are at
    its end, then it is a sign-off block.  Otherwise it is not.

would allow the leading non-signature lines in the above example.

If the comment line (which I would say should have been separated by
a blank line from the signature block if only to make it easier to
read the whole thing) were in the middle, e.g.

>     Signed-off-by: Tang Chen <tangc...@cn.fujitsu.com>
>     Cc: Xishi Qiu <qiuxi...@huawei.com>
>     Cc: Yasuaki Ishimatsu <isimatu.yasu...@jp.fujitsu.com>
>     Cc: Vlastimil Babka <vba...@suse.cz>
>     Cc: Mel Gorman <mgor...@techsingularity.net>
>     [a...@linux-foundation.org: coding-style fixes]
>     Cc: David Rientjes <rient...@google.com>
>     Cc: <sta...@vger.kernel.org>        [4.2.x]
>     Signed-off-by: Andrew Morton <a...@linux-foundation.org>

that rule would still not think this is a signature block, but at
that point, do we really want to consider such a block of text a
signature block?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to