From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10F9DC433FE for ; Sat, 19 Nov 2022 01:43:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232620AbiKSBnZ (ORCPT ); Fri, 18 Nov 2022 20:43:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232634AbiKSBms (ORCPT ); Fri, 18 Nov 2022 20:42:48 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5469685A05 for ; Fri, 18 Nov 2022 16:50:34 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id bj12so16789061ejb.13 for ; Fri, 18 Nov 2022 16:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nbnxNPkD/tBk8mexggAmk/fbagHB969gN62HVwBMN1E=; b=eUQV6doGaCvGwfJxLgx/mBDS/X82dgKPdH88aESoaWlTV6oSHdlXkuiJpS2voNmxfh 27u7jpFqu9l6RFcy9nUj9jDrRWGUNfiKhUuGjZXkXAcwE2S3XE06/VU5ikABYcXeOwic 6ovEgTtx/18mLH9gHWws4CUtIk3LNSNVRxkIdsl/yGGU8EmU6HMNtKZ363awQ+oG6IPU hzkrWFJP9eobmGSqFPlSL6363BLThKTx7Q41RAxtionVO1lQfQfQ7axQ6OeuTIE00zUw bkqXrRr2VodB652o+ijzh1izDUpaaNNfoYp4nPC0xl+2qLwVhJ0nofEndjAkIONhJmV+ NZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nbnxNPkD/tBk8mexggAmk/fbagHB969gN62HVwBMN1E=; b=lN000PV0KWaE18mbEkNIJmZBsNYZKFkoldUWqs85gS9dIXSrArkCOMUix++dUjx2BJ KLn3V2sU8qzjhoaqxPDuCZ8U0iHLJjJNGQ38ux3wF5A5zUR/E747ae5LVvBMiT7ud7/D sfEo7Vc58SBNbp3mwHdAVZ7/6JBZsNVc3QCM51N9PLEwUccnZgrPJdeB4wC5nujHNr+t 8TOr91Chwu0SFOzy0HPGA6Lnhiqe55/8o3ZV743n2aXEWKf5OudOaD5K1WYt7LVTpWD6 ZOWIxQfNBe4En/mOMrWV5mOJ14rt539BMrwPl/2IlEA99bskwnRsCijaiMzkQWYnmmox EOgQ== X-Gm-Message-State: ANoB5pkhiFxAAusFaszfsz7B85r+btYFNzPUfFUCAIQ8pzAkOCxupkUg /yWpZpW0O96YRHGCHXXbCmYeW5XIAD4= X-Google-Smtp-Source: AA0mqf5bNbQ5e5zDqNmBWwaJiwOtKUXRHFH6yhMMdzYHNvbNkb2nbpCT/4iNFfRtwV4JyOJeR/FMOw== X-Received: by 2002:a17:906:901:b0:7ae:23c:3cb4 with SMTP id i1-20020a170906090100b007ae023c3cb4mr7721845ejd.599.1668819032547; Fri, 18 Nov 2022 16:50:32 -0800 (PST) Received: from localhost (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id mf20-20020a1709071a5400b0078a543e9301sm2258883ejc.200.2022.11.18.16.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 16:50:32 -0800 (PST) From: Thierry Reding To: git@vger.kernel.org Cc: Taylor Blau Subject: [PATCH v2] am: Allow passing --no-verify flag Date: Sat, 19 Nov 2022 01:50:31 +0100 Message-Id: <20221119005031.3170699-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Thierry Reding The git-am --no-verify flag is analogous to the same flag passed to git-commit. It bypasses the pre-applypatch and applypatch-msg hooks if they are enabled. Signed-off-by: Thierry Reding --- Changes in v2: - add test to verify that the new option works Documentation/git-am.txt | 8 +++++- builtin/am.c | 11 ++++++-- t/t4154-am-noverify.sh | 60 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 4 deletions(-) create mode 100755 t/t4154-am-noverify.sh diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index 326276e51ce5..0c1dfb3c98b4 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -9,7 +9,7 @@ git-am - Apply a series of patches from a mailbox SYNOPSIS -------- [verse] -'git am' [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] +'git am' [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] [--no-verify] [--[no-]3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--ignore-space-change | --ignore-whitespace] [--whitespace=