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
Michael Haggerty <mhagger@alum.mit.edu>
Date
Apr 28, 2014, 05:58 UTC
Message-ID
<535DEE08.9090402@alum.mit.edu>
In-Reply-To
<20140427201238.16880.13774.chriscool@tuxfamily.org>
On 04/27/2014 10:12 PM, Christian Couder wrote:
Show 8 quoted lines
> 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?
Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Previous: Christian CouderNext: Christian Couder
Message 3 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.