From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Couder Subject: [PATCH v2 0/5] Small "git interpret-trailers" fixes Date: Sun, 09 Nov 2014 10:23:38 +0100 Message-ID: <20141109092313.4864.54933.chriscool@tuxfamily.org> Cc: git@vger.kernel.org, Johan Herland , Josh Triplett , Thomas Rast , Michael Haggerty , Dan Carpenter , Greg Kroah-Hartman , Jeff King , Eric Sunshine , Ramsay Jones , Jonathan Nieder , Marc Branchaud To: Junio C Hamano X-From: git-owner@vger.kernel.org Sun Nov 09 10:27:43 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 1XnOmd-0006IW-2m for gcvg-git-2@plane.gmane.org; Sun, 09 Nov 2014 10:27:43 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751550AbaKIJ1h (ORCPT ); Sun, 9 Nov 2014 04:27:37 -0500 Received: from [194.158.98.45] ([194.158.98.45]:48104 "EHLO mail-3y.bbox.fr" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751514AbaKIJ1f (ORCPT ); Sun, 9 Nov 2014 04:27:35 -0500 Received: from [127.0.1.1] (cha92-h01-128-78-31-246.dsl.sta.abo.bbox.fr [128.78.31.246]) by mail-3y.bbox.fr (Postfix) with ESMTP id 27BBE53; Sun, 9 Nov 2014 10:27:11 +0100 (CET) X-Mailer: git-mail-commits v0.5.2 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Here is a series to fix a few small bugs in "git interpret-trailers". Patch 1/5 and patch 2/5 are independent from the last 3 patches, and can be applied to master. Patches 3/5, 4/5 and 5/5 depend on this series by Junio: jc/conflict-hint (2014-10-28) 4 commits (merged to 'next' on 2014-10-29 at 693250f) Changes since the previous version are: * use "%.*s" instead of a strbuf, in patch 2/5 * add new find_trailer_end() function and a call to strbuf_release(), in patch 4/5 Thanks to Junio and Peff. Christian Couder (5): trailer: ignore comment lines inside the trailers trailer: display a trailer without its trailing newline commit: make ignore_non_trailer() non static trailer: reuse ignore_non_trailer() to ignore conflict lines trailer: add test with an old style conflict block builtin/commit.c | 46 ------------------------------------------- commit.c | 46 +++++++++++++++++++++++++++++++++++++++++++ commit.h | 3 +++ t/t7513-interpret-trailers.sh | 34 +++++++++++++++++++++++++++++++- trailer.c | 46 ++++++++++++++++++++++++++++++++----------- 5 files changed, 117 insertions(+), 58 deletions(-) -- 2.1.2.555.gfbecd99