git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Minor annoyance with 'git interpret-trailers'
@ 2015-08-20 16:37 Matthieu Moy
  2015-08-20 16:53 ` Christian Couder
  0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Moy @ 2015-08-20 16:37 UTC (permalink / raw)
  To: git, Christian Couder

Hi,

I use 'git interpret-trailers' as a commit-msg hook to add a
Signed-off-by in a repository.

When used in a one-line commit message formatted like
'foo: do something', the command interprets the one-line summary as a
trailer, and inserts my Signed-off-by after it, without a blank line:

    foo: do something
    Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>

This breaks the convention "One summary line, one blank line, and then
body", and shows my sign-off in the output of "git log --oneline" :-(.

I think the behavior "don't insert a newline if the last line looks like
a trailer" should be disabled when the message is a one-liner.

Cheers,

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

end of thread, other threads:[~2015-08-21  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 16:37 Minor annoyance with 'git interpret-trailers' Matthieu Moy
2015-08-20 16:53 ` Christian Couder
2015-08-20 21:59   ` [PATCH] trailer: ignore first line of message Christian Couder
2015-08-21  7:01     ` Matthieu Moy

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).