From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id B87001F4C1 for ; Mon, 28 Nov 2022 18:02:27 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Yd6iLiyv"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233989AbiK1SCW (ORCPT ); Mon, 28 Nov 2022 13:02:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234237AbiK1SCG (ORCPT ); Mon, 28 Nov 2022 13:02:06 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF6045EE5 for ; Mon, 28 Nov 2022 09:48:35 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id m19so15235272edj.8 for ; Mon, 28 Nov 2022 09:48:35 -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=T9nnjTllyBcoBrM+3tD0YB91UufSkuog1IRZOB0D1tA=; b=Yd6iLiyvvQKOGfaGVRZaLkYtAAooo5LUMlLYJDjgOz8cXmGlepxGH9FNm5orRs0mZD O7OIThqyR9tlMq8ouljT1h8lVOOo0biZuP6GGO1rzmM0+Uk8eM9dHe6WfeKYKoHWTipg JcGeXpo2k/rileyxY1GrbZSiSvvZR4esQgMir3kzTmrBQ8LiN6mm/kvKuXdfPacJMyIt /XY+j4oKnlKNDxTfJFLeQA1Xi+X5LOYzEJyC19uX33thO1IjpXzmRQQfBJa5CxFgRUxJ i8Ik0HBofluZD2zbFwlC92VkIeBIMfDOQC8yRavLjevdrj/YREuVjxxZSg1EtadPajyA KI0A== 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=T9nnjTllyBcoBrM+3tD0YB91UufSkuog1IRZOB0D1tA=; b=kZnhhCbdCeJDu7lyMP44iLPAd1eJX94zsVcuMJxrgonkGVUTiRZFoyWrs6rzlpD8iz MsQaOkA8s/7KUc+3JhCdwWpxAiM9CyeWnkV91ATSXYhwT422b3+ZKvcWevjZv9HjO5Oo Fp0TH37rW489B0+I+mepMRLmPMf5fTTpVdVZdGFu1iy3kHEpGKrxtMeNpnQ9og5v0wdH huKl8RygQFedz7uWUyC6wD5aGkmIIgKv9iPxr19LEroeTXEVzcI1LWp0Hphyw8AwMSlX Y63eMV4/D0zreuUVUx3CmMc59KVVgQyrUIn75tRdEH6xhVdJz3+gB5MmpFaX2d/akRh5 D6qw== X-Gm-Message-State: ANoB5plkwrs5oUHIuUdL8Fsu1lCxfs9c7Y3dkBQU9V3GHRAa7g2kJa36 KghySJ6043X7ea5QBcZna72i7h8v50I= X-Google-Smtp-Source: AA0mqf7vn0l/M+5H4yCSsWBGvUvwTnVx6o5AU3/tYx4X0Hlk3hk8VV3RdZ/li7DW3acPQW/JQWC01Q== X-Received: by 2002:a05:6402:5388:b0:46a:f4b0:2d23 with SMTP id ew8-20020a056402538800b0046af4b02d23mr9911181edb.78.1669657710019; Mon, 28 Nov 2022 09:48:30 -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 w15-20020a056402070f00b00463c475684csm5403881edx.73.2022.11.28.09.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 09:48:29 -0800 (PST) From: Thierry Reding To: git@vger.kernel.org Cc: Taylor Blau , Junio C Hamano Subject: [PATCH v3] am: Allow passing --no-verify flag Date: Mon, 28 Nov 2022 18:48:25 +0100 Message-Id: <20221128174825.1510407-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 v3: - move tests to existing t/t4150-am Changes in v2: - add test to verify that the new option works Documentation/git-am.txt | 8 +++++++- builtin/am.c | 11 ++++++++--- t/t4150-am.sh | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) 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=