From patchwork Mon Jan 28 21:33:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Waldenborg X-Patchwork-Id: 10784923 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 7F2C491E for ; Mon, 28 Jan 2019 21:51:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E2012B516 for ; Mon, 28 Jan 2019 21:51:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 607C62BF30; Mon, 28 Jan 2019 21:51:09 +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 56F5C2B516 for ; Mon, 28 Jan 2019 21:51:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726790AbfA1VvH (ORCPT ); Mon, 28 Jan 2019 16:51:07 -0500 Received: from 0x63.nu ([109.74.10.199]:44890 "EHLO 0x63.nu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfA1VvG (ORCPT ); Mon, 28 Jan 2019 16:51:06 -0500 X-Greylist: delayed 1027 seconds by postgrey-1.27 at vger.kernel.org; Mon, 28 Jan 2019 16:51:06 EST Received: from ip6-localhost ([::1] helo=moveme2.lan) by 0x63.nu with esmtp (Exim 4.89) (envelope-from ) id 1goEXR-0002Au-RS; Mon, 28 Jan 2019 22:33:53 +0100 From: Anders Waldenborg To: git@vger.kernel.org Cc: Junio C Hamano , Jeff King , Anders Waldenborg Subject: [PATCH v5 0/7] %(trailers) improvements in pretty format Date: Mon, 28 Jan 2019 22:33:30 +0100 Message-Id: <20190128213337.24752-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: ::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 Updates since v4: * Coding style fixes * Reuse git_parse_maybe_bool for bool parsing Anders Waldenborg (7): doc: group pretty-format.txt placeholders descriptions pretty: Allow %(trailers) options with explicit value pretty: single return path in %(trailers) handling pretty: allow showing specific trailers pretty: add support for "valueonly" option in %(trailers) strbuf: separate callback for strbuf_expand:ing literals pretty: add support for separator option in %(trailers) Documentation/pretty-formats.txt | 260 ++++++++++++++++++------------- pretty.c | 113 +++++++++++--- strbuf.c | 21 +++ strbuf.h | 8 + t/t4205-log-pretty-formats.sh | 117 ++++++++++++++ trailer.c | 25 ++- trailer.h | 4 + 7 files changed, 415 insertions(+), 133 deletions(-)