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

Re: [RFC/PATCH 1/2] trailer: fix to ignore any line starting with '#'

From
Christian Couder <christian.couder@gmail.com>
Date
Apr 28, 2014, 08:16 UTC
Message-ID
<CAP8UFD0R6g13k8GM6wQXw2qgnjeOb=z_SC6jG6EfXvo8ALdg6g@mail.gmail.com>
In-Reply-To
<535DEE08.9090402@alum.mit.edu>
On Mon, Apr 28, 2014 at 7:58 AM, Michael Haggerty <mhagger@alum.mit.edu> wrote:
Show 11 quoted lines
> On 04/27/2014 10:12 PM, Christian Couder wrote:
>> It looks like the commit-msg hook is passed a commit
>> message that can contain lines starting with a '#'.
>> Those comment lines will be removed from the commit
>> message after the hook is run.
>>
>> If we want "git interpret-trailers" to be able to
>> process commit messages correctly in the commit-msg
>> hook we need to ignore those lines.
>
> Shouldn't this take into account the config setting core.commentchar?
Yes, I will have a look at that.

Thanks, Christian.

Previous: Michael HaggertyNext: Christian Couder
Message 4 of 6 in “fix and examples for git interpret-trailers”
  1. 0/2 fix and examples for git interpret-trailersChristian Couder, Apr 27, 2014
  2. 1/2 trailer: fix to ignore any line starting with '#'Christian Couder, Apr 27, 2014
  3. Michael HaggertyApr 28, 2014
  4. Christian CouderApr 28, 2014
  5. 2/2 trailer: add examples to the documentationChristian Couder, Apr 27, 2014
  6. Junio C HamanoApr 28, 2014

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.