All of lore.kernel.org
 help / color / mirror / Atom feed
* cherry-pick -x formats the message incorrectly
@ 2010-11-16  9:14 Martin Svensson
  2010-11-16 19:20 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Svensson @ 2010-11-16  9:14 UTC (permalink / raw)
  To: git

Hello,

I have a problem with the commit message format for "cherry-pick -x":
Given a commit with the message:

  foo

, i.e. with only a summary part, I do "git cherry-pick -x the_commit". The
result is a new commit with message

  foo
  (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)

Now that's not good, because it is a two-line summary. In my opinion, the
parentheses should _always_ end up in the detailed part.
It should be:

  foo
  
  (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)

Am I right?

/Martin Svensson, SW Developer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cherry-pick -x formats the message incorrectly
  2010-11-16  9:14 cherry-pick -x formats the message incorrectly Martin Svensson
@ 2010-11-16 19:20 ` Junio C Hamano
  2010-11-16 19:35   ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2010-11-16 19:20 UTC (permalink / raw)
  To: Martin Svensson; +Cc: git

Martin Svensson <martin.k.svensson@netinsight.se> writes:

> Now that's not good, because it is a two-line summary. In my opinion, the
> parentheses should _always_ end up in the detailed part.
> It should be:
>
>   foo
>   
>   (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)
>
> Am I right?

I tend to agree (modulo s/summary/subject/ would be the wording I would
have used).

This falls into "patches welcome" category, though.  I do not think
anybody sane is still using cherry-pick with -x option these days after
http://thread.gmane.org/gmane.comp.version-control.git/28378

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cherry-pick -x formats the message incorrectly
  2010-11-16 19:20 ` Junio C Hamano
@ 2010-11-16 19:35   ` Jonathan Nieder
  2010-11-16 21:34     ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Nieder @ 2010-11-16 19:35 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Martin Svensson, git

Junio C Hamano wrote:
> Martin Svensson <martin.k.svensson@netinsight.se> writes:

>> It should be:
>>
>>   foo
>>   
>>   (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)
>>
>> Am I right?
>
> I tend to agree (modulo s/summary/subject/ would be the wording I would
> have used).
>
> This falls into "patches welcome" category, though.  I do not think
> anybody sane is still using cherry-pick with -x option these days after
> http://thread.gmane.org/gmane.comp.version-control.git/28378

Mm, I use it and do not agree; I think the rule should rather be:

 - if there is a Signed-off chain, quietly integrate into that (no added
   newline)

 - if there is not a Signed-off chain, add the extra newline.

Patch for a related issue in a few minutes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cherry-pick -x formats the message incorrectly
  2010-11-16 19:35   ` Jonathan Nieder
@ 2010-11-16 21:34     ` Jonathan Nieder
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Nieder @ 2010-11-16 21:34 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Martin Svensson, git

Jonathan Nieder wrote:
> Junio C Hamano wrote:
>> Martin Svensson <martin.k.svensson@netinsight.se> writes:
>
>>> It should be:
>>>
>>>   foo
>>>   
>>>   (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)
>>>
>>> Am I right?
>>
>> I tend to agree (modulo s/summary/subject/ would be the wording I would
>> have used).
[...]
> Mm, I use it and do not agree; I think the rule should rather be:
> 
>  - if there is a Signed-off chain, quietly integrate into that (no added
>    newline)
> 
>  - if there is not a Signed-off chain, add the extra newline.

Hmm, probably it is obvious, but I sent this reply to the wrong message.
Sorry for the nonsense.

Martin, I do agree with you and would be happy to see cherry-pick -x
respecting the

	One-line subject

	Possibly multi-line, detailed description.

	Signed-off-by: chain

format.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-16 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-16  9:14 cherry-pick -x formats the message incorrectly Martin Svensson
2010-11-16 19:20 ` Junio C Hamano
2010-11-16 19:35   ` Jonathan Nieder
2010-11-16 21:34     ` Jonathan Nieder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.