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.