git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Minor annoyance with 'git interpret-trailers'

From
Christian Couder <christian.couder@gmail.com>
Date
Aug 20, 2015, 16:53 UTC
Message-ID
<CAP8UFD0YcBdAfMJxc2bQD_zTp+kPk2L2sQfWYzTDn+trFk+DMA@mail.gmail.com>
In-Reply-To
<vpqy4h5ud9z.fsf@anie.imag.fr>

On Thu, Aug 20, 2015 at 6:37 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

Show 17 quoted lines
> 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.
Yeah, I agree. I will take a look at fixing that soon.

Thanks for the report, Christian.

Previous: Matthieu MoyNext: Christian Couder
Message 2 of 4 in “Minor annoyance with 'git interpret-trailers'”
  1. Matthieu MoyAug 20, 2015
  2. Christian CouderAug 20, 2015
  3. trailer: ignore first line of messageChristian Couder, Aug 20, 2015
  4. Matthieu MoyAug 21, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.