From patchwork Wed Nov 30 17:28:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13060140 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 A5941C4321E for ; Wed, 30 Nov 2022 17:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiK3R2r (ORCPT ); Wed, 30 Nov 2022 12:28:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiK3R2n (ORCPT ); Wed, 30 Nov 2022 12:28:43 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF14323BD9 for ; Wed, 30 Nov 2022 09:28:42 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id ha10so43122657ejb.3 for ; Wed, 30 Nov 2022 09:28:42 -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=f2zJc658qMbF8b15K9R1H9TPI4+MHukBaeWeGfomKgA=; b=n3eZOZ8YvD2gc7dS1dAeypw9oKTpXKSiOOFx8zYSr6lG7KSttptsBn4/8NEH/jbBl4 EfQdGjhw3Bv+O7pJHJ2zCetrIyl/C3C6gRs5M83i75BUlSVKhiwS4FW6+zMNTTcjSaSW ylh82rtDNpjkzO66uoGK72OablF8AkbKBK8+hjiBaeKZr8c/L/E0fwInEazSTWmY9Wro pRDHQdWMOA2fAryVvXW3hFFsqIo7rpcHCRwwd0wxkipJ9EWTeyyK9Tz7qjifts/m50/f y9/NJu0Gl4gg50nlJj6o8Z2/DWbhT5KVDu01XflzAAdvZj6XrCP+1TrfSg2BcrLNaAvp Y8lA== 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=f2zJc658qMbF8b15K9R1H9TPI4+MHukBaeWeGfomKgA=; b=uwyXF5HQgBljiGRQu00qWxF6qjfnnE2byFQdgHcByRXQx96j6VCVVUKrAGjkkQDpaV Sz06bu/cMCRRik+2eI1xn2b2G9OsbMhrXcTgqRhaYtZ0EdHMg+wQkJ+shCBJ+q4FRvjp DKa6Jzu3OpuxZqE8hRkxg9vO28mBvsyMqBJBNs8t+rRbuAM7Spke/6w4EmGzJ3nA4BaB GKQcZLyzU4DDP4rSVrf3uZI/ZBhLUFRxisa+KVErrBNDdowNVV5oNfRZSkdwpyMhbTqZ xMKM6j9yRmqnj+FieDcF/nIx7+qagvcVOYXe8jm6DZTsv9hjg6dyzz+4ec6t/KqXRPHA uktg== X-Gm-Message-State: ANoB5pkUMothZw7Q4t8TXWP908ILgqJgLhG2gONm2SQ5fUgdUCdDqC7/ 2GVLoZm/99IDAkAmSesH8hiQcriHDag= X-Google-Smtp-Source: AA0mqf7IfSo9zoYImwzxpojfceh5sRytGhYAq3JYPeMSD5WeL5KAaZ6BRui3jV6p+3OSFRMdr5BZUw== X-Received: by 2002:a17:906:3954:b0:7bf:852b:e23c with SMTP id g20-20020a170906395400b007bf852be23cmr13780903eje.614.1669829320740; Wed, 30 Nov 2022 09:28:40 -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 oz13-20020a170906cd0d00b007ae566edb8bsm865893ejb.73.2022.11.30.09.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 09:28:40 -0800 (PST) From: Thierry Reding To: git@vger.kernel.org Cc: Taylor Blau , Junio C Hamano Subject: [PATCH v4] am: Allow passing --no-verify flag Date: Wed, 30 Nov 2022 18:28:33 +0100 Message-Id: <20221130172833.2662751-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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 v4: - check that scripts haven't run and that commits have been applied 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 | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 47 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=