From patchwork Sun Nov 4 15:22:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Waldenborg X-Patchwork-Id: 10666899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 031E11591 for ; Sun, 4 Nov 2018 15:24:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D695928BFC for ; Sun, 4 Nov 2018 15:24:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C436F29990; Sun, 4 Nov 2018 15:24:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3977E28BFC for ; Sun, 4 Nov 2018 15:24:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729955AbeKEAjD (ORCPT ); Sun, 4 Nov 2018 19:39:03 -0500 Received: from 0x63.nu ([109.74.10.199]:37194 "EHLO 0x63.nu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729786AbeKEAjC (ORCPT ); Sun, 4 Nov 2018 19:39:02 -0500 Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by 0x63.nu with esmtp (Exim 4.89) (envelope-from ) id 1gJKFS-0005Wk-U5; Sun, 04 Nov 2018 16:23:37 +0100 From: Anders Waldenborg To: git@vger.kernel.org Cc: Junio C Hamano , Jeff King , Olga Telezhnaya , Anders Waldenborg Subject: [PATCH v2 0/5] %(trailers) improvements in pretty format Date: Sun, 4 Nov 2018 16:22:27 +0100 Message-Id: <20181104152232.20671-1-anders@0x63.nu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181028125025.30952-1-anders@0x63.nu> References: <20181028125025.30952-1-anders@0x63.nu> X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: anders@0x63.nu X-SA-Exim-Scanned: No (on 0x63.nu); SAEximRunCond expanded to false Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for three new options to %(trailers): * key -- show only trailers with specified key * nokey -- don't show key part of trailers * separator -- allow specifying custom separator between trailers Anders Waldenborg (5): pretty: single return path in %(trailers) handling pretty: allow showing specific trailers pretty: add support for "nokey" option in %(trailers) pretty: extract fundamental placeholders to separate function pretty: add support for separator option in %(trailers) Documentation/pretty-formats.txt | 17 +++++--- pretty.c | 71 ++++++++++++++++++++++++++------ t/t4205-log-pretty-formats.sh | 60 +++++++++++++++++++++++++++ trailer.c | 28 ++++++++++--- trailer.h | 3 ++ 5 files changed, 156 insertions(+), 23 deletions(-)