From patchwork Sat Apr 27 19:25:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 10920495 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 4A45E1395 for ; Sat, 27 Apr 2019 19:25:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BAA828852 for ; Sat, 27 Apr 2019 19:25:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A9182888D; Sat, 27 Apr 2019 19:25:26 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 AF9D628852 for ; Sat, 27 Apr 2019 19:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726088AbfD0TZX (ORCPT ); Sat, 27 Apr 2019 15:25:23 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:38018 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfD0TZX (ORCPT ); Sat, 27 Apr 2019 15:25:23 -0400 Received: by mail-io1-f66.google.com with SMTP id y6so5701319ior.5 for ; Sat, 27 Apr 2019 12:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=28rR+xquf27dFHj3fnXgHo947X2aS+oC2XtbX/O6YqQ=; b=h1Uy3y5JQwt9iMirBjATu2UaGuaw7Bq9O7wqbExftAdB49AxSBPhpMcJ4MTJxZFIqt /VWdj+2SydThwW9b8GanqmoUDaPOc6ORhYcHMehONZQikYgLULsGRwmU+EfeFaJG+el2 LbdETw4FeTKxfUYV5mOhBmDJoYSP9jOXSBsAfL1MuJeSUT0Ashmpg/7dazY/dzgz2ntK 25JWp6g6CcKTuSQ6Yp7F9Vlf/lVjHZ3eMbcsqMxmqUxFEDqAqTcHZ8m0KoUgmIS+yhkI 2WMG1hFWvDu4FbtAiO/tu/GUfKrYIA4mT6rjmJrqPKbFI+rNTNrVbEBJ4bqixapnNh02 Y1hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=28rR+xquf27dFHj3fnXgHo947X2aS+oC2XtbX/O6YqQ=; b=RxAXuLrW6GSD2V5//yrFCTPmoa52p8scXE1z0oIODV6bsg8XaLLmAlNNBwauM89x63 mcENZX+DgyC9DJYb311p68yXAFseg+ZToPGC38UNPtZEWcdZ8Ig1TIF4l6BSdFSWKgNp 3/VbMqPyyGUvKzDIv/6BF9g8uinMccGDAJ2ScRUPHBcqOTeKIt5o+hyyCtMdtPnamSxl gPJQoKs0jDUb71Rg2bdrrYr1WJ6KB2Nh4N2YKSSQWthMm1dlievNFru0nKWukvjFLAW9 4YNQ7rs1F57ktsOWoJbzn+JKsVb4IQPv7zpasgR13I+qxcfh3KWCnk1lOJIuFiIyHhE/ K0Vw== X-Gm-Message-State: APjAAAVbDGs+Qf/y947Ex31VFM36vWDD4RJE8z1J+VrKY8yOvrBdMoMH IXDqjHn0+o14HvoUDFIZeF7cc2bh X-Google-Smtp-Source: APXvYqzpJoGZWzEkOoHJj2g9lnBVo2ep5xidGgu4F1r3knZzD+ZXCw1ASNr2QZjZGyN0hLXy5gSr8w== X-Received: by 2002:a5d:898a:: with SMTP id m10mr33142823iol.296.1556393122275; Sat, 27 Apr 2019 12:25:22 -0700 (PDT) Received: from archbookpro.localdomain (mobile-107-77-160-135.mobile.att.net. [107.77.160.135]) by smtp.gmail.com with ESMTPSA id t22sm10165656iob.16.2019.04.27.12.25.20 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Apr 2019 12:25:21 -0700 (PDT) Date: Sat, 27 Apr 2019 15:25:12 -0400 From: Denton Liu To: Git Mailing List Subject: [PATCH 0/2] format-patch: teach format.notes config option Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If a user sends patches with git-format-patch, they might want to take advantage of notes to add additional commentary. However, if they are forgetful (like me) they may forget to include the `--notes` option in their invocation of git-format-patch. Teach git-format-patch the `format.notes` config option where if its value is true, notes will automatically be appended. Denton Liu (2): git-format-patch.txt: document --no-notes option format-patch: teach format.notes config option Documentation/config/format.txt | 4 ++++ Documentation/git-format-patch.txt | 7 ++++++- builtin/log.c | 6 ++++++ t/t4014-format-patch.sh | 28 ++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-)