Re: [PATCH] commit -s: allow "(cherry picked " lines in sign-off section

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] commit -s: allow "(cherry picked " lines in sign-off section

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:03

Jonathan Nieder [off-list ref] writes:
Jonathan Nieder wrote:
quoted
	(cherry picked from commit 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0)

	Signed-off-by: Back Porter [off-list ref]

The cherry-pick is a step in the line of a patch like any other,
so one might prefer to lose the extra newline.
Sigh.  s/line/life/

[...]
quoted
Signed-off-by: Jonathan Nieder <redacted>
Let's kick off the reviews.
quoted
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -528,6 +528,8 @@ static int ends_rfc2822_footer(struct strbuf *sb)
 		i++;
 
 	for (; i < len; i = k) {
+		static const char cherry_pick[] = "(cherry picked from commit ";
+
Better to share this string with builtin/revert.c, no?

What would happen when "(cherry picked ..." gets translated?
Should only the current language's version be tolerated in
the commit footer, or is there something more generic to
match for that could take care of wording changes automatically?
With this patch you are declaring that "(cherry picked from..." is a magic
marker just like "Signed-off-by: " never to be translated, no?

I am not sure I agree with the reasoning of this patch, by the way.  A
cherry-pick is an event that breaks the life of the patch, so it may even
be a sensible thing to do to express "the above sign-off chain shows who
were involved in the original commit; I am cherry-picking it out of
context, and these people do not have much to do with the result" with a
blank line on both sides of the "cherry picked" line, like this:

        A concise summary of the change

	A detailed description of the change, why it is needed, what
        was broken and why applying this is the best course of action.

	Signed-off-by: Andrew Morton [off-list ref]
	Signed-off-by: Linus Torvalds [off-list ref]

	(cherry picked from commit 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0)

	Signed-off-by: Back Porter [off-list ref]

Re: [PATCH] commit -s: allow "(cherry picked " lines in sign-off section

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:50:03

Junio C Hamano wrote:
I am not sure I agree with the reasoning of this patch, by the way.  A
cherry-pick is an event that breaks the life of the patch, so it may even
be a sensible thing to do to express "the above sign-off chain shows who
were involved in the original commit; I am cherry-picking it out of
context, and these people do not have much to do with the result" with a
blank line on both sides of the "cherry picked" line, like this:

A concise summary of the change

	A detailed description of the change, why it is needed, what
was broken and why applying this is the best course of action.

	Signed-off-by: Andrew Morton [off-list ref]
	Signed-off-by: Linus Torvalds [off-list ref]

	(cherry picked from commit 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0)

	Signed-off-by: Back Porter [off-list ref]
How is the cherry-pick event different from the send-by-mail-and-apply
event?

In both cases, the result has a distinct commit id and distinct
signoff and it is unlikely that the previous patch handler was testing
with the same tree as the next one.  (And each patch handler should add
relevant comments if the new situation warrants that.)

Re: [PATCH] commit -s: allow "(cherry picked " lines in sign-off section

From: Jay Soffian <hidden>
Date: 2016-06-15 22:50:03

On Tue, Nov 16, 2010 at 5:52 PM, Junio C Hamano [off-list ref] wrote:
I am not sure I agree with the reasoning of this patch, by the way.  A
cherry-pick is an event that breaks the life of the patch, so it may even
be a sensible thing to do to express "the above sign-off chain shows who
were involved in the original commit; I am cherry-picking it out of
context, and these people do not have much to do with the result" with a
blank line on both sides of the "cherry picked" line, like this:

       A concise summary of the change

       A detailed description of the change, why it is needed, what
       was broken and why applying this is the best course of action.

       Signed-off-by: Andrew Morton [off-list ref]
       Signed-off-by: Linus Torvalds [off-list ref]

       (cherry picked from commit 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0)

       Signed-off-by: Back Porter [off-list ref]
Or perhaps prefix them with Original-, inspired by email headers, and
which I think makes it even more clear that the sob lines don't apply
to the new commit.

        Original-Signed-off-by: Andrew Morton [off-list ref]
        Original-Signed-off-by: Linus Torvalds [off-list ref]
        Cherry-picked-from: 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0
        Signed-off-by: Back Porter [off-list ref]

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help