From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Couder Subject: Re: [RFC/PATCH 1/2] trailer: fix to ignore any line starting with '#' Date: Mon, 28 Apr 2014 10:16:14 +0200 Message-ID: References: <20140427200327.16880.53255.chriscool@tuxfamily.org> <20140427201238.16880.13774.chriscool@tuxfamily.org> <535DEE08.9090402@alum.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Christian Couder , Junio C Hamano , git , Johan Herland , Josh Triplett , Thomas Rast , Dan Carpenter , Greg Kroah-Hartman , Jeff King , Eric Sunshine , Ramsay Jones , Jonathan Nieder To: Michael Haggerty X-From: git-owner@vger.kernel.org Mon Apr 28 10:16:24 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wegjg-0001HE-0s for gcvg-git-2@plane.gmane.org; Mon, 28 Apr 2014 10:16:24 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752239AbaD1IQT (ORCPT ); Mon, 28 Apr 2014 04:16:19 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:37809 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbaD1IQP (ORCPT ); Mon, 28 Apr 2014 04:16:15 -0400 Received: by mail-vc0-f174.google.com with SMTP id ib6so1270170vcb.19 for ; Mon, 28 Apr 2014 01:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DHnC8BXA72Pa3SIEm1ZFxgHQymje8CImqN/mZNKRZdU=; b=nZlTuKhvdwmx0ysM0wwntmcr9AgduyLVRTCPfaijJ2e+e5q/kh0f4yhSvKqDAeKK1k 3VhIQUky4KAKBcMasl8EBgFX4624KlILBlsz5ZUS3exmbzgYLQps8U3/Hxgks37nlBPz MqwIc12lPfa4mlarKZHYX9I4lU2yA2ksNaIHVDNxnjWSptZP5nclUUoOeLq2qeehrCyS GtsXbMlIpLNscen+49l94ONA5ixX7SN/kQRC5n8S9TfedMe4EPQHZBwFv2vHcONXD4DF lDlLDEekRoTmysLdMnohTBU7zlNKs7Tqo+lqzLmwVj/+eD6r0FwrWC5kjuR8TcfzdbKu CsyQ== X-Received: by 10.52.229.97 with SMTP id sp1mr19274950vdc.23.1398672974375; Mon, 28 Apr 2014 01:16:14 -0700 (PDT) Received: by 10.58.143.72 with HTTP; Mon, 28 Apr 2014 01:16:14 -0700 (PDT) In-Reply-To: <535DEE08.9090402@alum.mit.edu> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Apr 28, 2014 at 7:58 AM, Michael Haggerty wrote: > 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.