From patchwork Fri Nov 11 02:15:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Strawbridge X-Patchwork-Id: 13039513 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 3FCC3C4332F for ; Fri, 11 Nov 2022 02:15:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbiKKCPf (ORCPT ); Thu, 10 Nov 2022 21:15:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbiKKCPa (ORCPT ); Thu, 10 Nov 2022 21:15:30 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAB05F879 for ; Thu, 10 Nov 2022 18:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kRfkHFsHXB3aaTRoeWyfqP0kxTe2EGparxye/mOwBNXhgw6KciH20NHZnNWqQqAsxbnVIYmL3/l4WbAakTSBogkxMoe6MkpySwsRtXRQ6USfqIb657fqTWyUrin56F54hNrM8siE0X3Zuns1TZGrcYEsuihmm+MfEIT7sfAQOyyRsHtLXRLlTiPwvGbSBAYASdzrIAt777Xzg3r2lhMSNVlye1ui1Nc6vHiw34ghZihF2x/jGHQLHU3K7zgtKwVaLbYiwYRA3Pygqu5ATohqbi1g5pDBn2FfcIGyuJAX8Ktn1c0uKgMSfpA1aiahDjFc5tWhdNJMHo5w58K8Yd5BFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6muwiSv8ww/DveJxWuQhvAHWxHo+KiAUuWXJuzJB1to=; b=XJGHQgMAuZOg4M0ktapq7cWirh0q0rsTirY/1MKwY13q5jwytFMDn/WMrPh/2dwHnG1qi8xlmVrEhMkT0JH4AShLvk8az6OlxMUHKZAd5J3gQWbLDOg3QOkZ0cE6lDPh4hqwjIGgjfXe9xHIuGYqXCsP6VcX2RMDtvQQzsAIiCg3Q1Y4csCO9T6O5ilUtA6em4ifhGV0pcjUkW0I1MBWfnzr0GOq9uCcixw7i7ZG2yPjeLouSQe6d+9B2+ON2HaxxxcMN6qhlGNZTPyLiUXq6brQwaOJARwUp1mVWnZTzCGqK07pspL+GiWHYauzQsCOC0WqeX6j2fX3G6XDfX4wwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6muwiSv8ww/DveJxWuQhvAHWxHo+KiAUuWXJuzJB1to=; b=2r/whAReJJfaRquHJouWmT/Y/YcrUWre0ffA/vswKP6Tk2tz3dcX8jigFYHvoEVfSos1tvc9wawZtTcuXV/hYTwTiAsR3B72r5h9TkH7etnAGSGh1z5EKhYTAUh3rvKF56v/rOi+cV4BWkC/gIuxu26Zs86JdfRS0RxHYa7gPto= Received: from DM6PR12MB4356.namprd12.prod.outlook.com (2603:10b6:5:2aa::8) by DM6PR12MB4107.namprd12.prod.outlook.com (2603:10b6:5:218::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Fri, 11 Nov 2022 02:15:25 +0000 Received: from DM6PR12MB4356.namprd12.prod.outlook.com ([fe80::70fe:fd7e:da10:fd66]) by DM6PR12MB4356.namprd12.prod.outlook.com ([fe80::70fe:fd7e:da10:fd66%6]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 02:15:25 +0000 From: "Strawbridge, Michael" To: "git@vger.kernel.org" CC: "Strawbridge, Michael" , "Tuikov, Luben" , "brian m . carlson" Subject: [PATCH 1/2] Expose header information to git-send-email's sendemail-validate hook Thread-Topic: [PATCH 1/2] Expose header information to git-send-email's sendemail-validate hook Thread-Index: AQHY9XN2OwZNasUh50CEA4i7LOan/w== Date: Fri, 11 Nov 2022 02:15:25 +0000 Message-ID: <20221111021502.449662-2-michael.strawbridge@amd.com> References: <20221111021502.449662-1-michael.strawbridge@amd.com> In-Reply-To: <20221111021502.449662-1-michael.strawbridge@amd.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB4356:EE_|DM6PR12MB4107:EE_ x-ms-office365-filtering-correlation-id: 46f66219-4ca8-4fa2-f1fb-08dac38a988d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m5fDBWMmhtIJWvRplQY6vrK4wboNQtQyi8DIHj7PsJPleDykimZ5ToOyy9pwt685pa5anpNHxcB7QtNZryR+S72GMT+Q3gKlHzwoApz+5PukgVONW1QP7oCrRJAqCEJx9eWRt/CgHyHGVAnYmu6QcKoAmqrnE5zN/TS3uQyZbioNl7QYc1+7HvHNiFLfGF6Uv9uAb6HrQbV5J9YKUGLHKnFK9NIz2/7F9Okn7pYEMFog58XuAkb7OqjdeszKxr3gIuH0MuFnORjL2LIjC5+MYQO7QMPeqUwbGYmewhvEpCDcolDNCPEayMQ0ekPesVW7vKy0QwNHuw4g0+frtZMzbLc8lxLXzwZENJOJX4vR/p6XAddIOW+PVPzlSmmWDkl+MVlVxiYn52EMr7ErC1YgQLwZEJWIPNzbRXz/gUz5lnpczWnG1eYL6CJ3a/MuzctHDQaJ6uxGoBUqnhcx+XpqUyacLz1X0LbjCISMEp6ymddjiWHmZ/3+ucrqr5fdzOwNOgC0DLu/7M9EOXStZjsxstQmE7Kn19DMoNirMnGX4VYvjEo+KsKcrMwDQVdZwoS8fhfbAL5VsUurYZ+KkWoQwtfgGjVf4jdAMCbOm/I8+ytgGF2sQqsyw/MP0aJR2NGg2W8SalTndW+vkFEDlxE/84CJNcFKUexigADG8IFrlnxEfO8oFF0jBFEYOhF8inzKkE6V4S3zIQi06mgptcaMW7v39hbTijnikNYmYE8I04fro91swgK1Lf7RSd2ad3xBffsL8/Yn0AZyw2uqP6ghnw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4356.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(39860400002)(376002)(136003)(346002)(396003)(451199015)(38100700002)(122000001)(15650500001)(86362001)(38070700005)(4326008)(6506007)(2906002)(26005)(66556008)(6512007)(66446008)(66476007)(2616005)(64756008)(76116006)(91956017)(66946007)(6486002)(71200400001)(8676002)(316002)(83380400001)(8936002)(5660300002)(1076003)(6916009)(41300700001)(36756003)(478600001)(186003)(54906003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1ZjXaEA/3ey4ml/Qzf0oexg?= =?iso-8859-1?q?vteX2fjd0Tb4XQJuUNAmLNukcYePUhtx5Qvz420gLifk4BFvPVA8uBBkTel2?= =?iso-8859-1?q?rRTQn/vPLzPjcuxgipaSYY2YDU04g3wp8n3pnjjvwK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q?UVS+Gq6fD7TpVbBuGmrf1sznPrbKH07iuurV64VicCKESOrbjW+WzAYr57BF?= =?iso-8859-1?q?KgbbJpbY8Nc7Y8qWJKFx8R9v21Lb2TK/9O+xlQEfUo7Uwzyz8F4NLSR60Q+q?= =?iso-8859-1?q?lQ9DOmsfEvxJ/9YgdMBMjwWtKmqpBQo/qeaxPZM7fKZqXshBvIj3fDCCvQBv?= =?iso-8859-1?q?RfLx+VcBP3n/8L5XOvldq/+7RrIAp4STiDY3mRv2AJCukcoQR8ViNDGH4Fy+?= =?iso-8859-1?q?udvOI0/MNdcE3CCONx03OZPLbmmv6ojsIG0/ujbB/wWSCvDOAoqkP1N+g2NG?= =?iso-8859-1?q?mNs+jmcDnclIzwoCXne6GyNDOBHrUUstwPlhd/K0Q8Il3Vf15dDYwd5brMh7?= =?iso-8859-1?q?0AgPdoRypcR8RUJifeI+qmk7FsADitYmfVvE3NAgdoQVgyUA18iHAn1AloY3?= =?iso-8859-1?q?kysFu64+usYyGxXOIERb52RAWn51esBajAGT+9jcb46K22yAPxPcGx6rq4Bn?= =?iso-8859-1?q?5JwWKe1mOcP6hESribLTYOUqyPJNvF6NDvDL3pF7At3TIajcfHtU5Yj0tOGr?= =?iso-8859-1?q?XqFkjvbae5ATuu6noqKGIVLEPCQGU7JBQx/vtFFMQ/aMIBGKmgPhKGL6mRor?= =?iso-8859-1?q?qxIxk5/VcmR4sK5xL?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4356.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46f66219-4ca8-4fa2-f1fb-08dac38a988d X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 02:15:25.8064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Lx8nEhbZ8poFo5c6sMe5+wq3KOfcdpZPH/Px+gGXozUwDeYrRZpE+oUlD9VlmEPsjlMe17LDxcFtS1UqZjBRBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4107 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org To allow further flexibility in the git hook, the smtp header information of the email that git-send-email intends to send, is now passed as a 2nd argument to the sendemail-validate hook. As an example, this can be useful for acting upon keywords in the subject or specific email addresses. Cc: Luben Tuikov Cc: brian m. carlson Signed-off-by: Michael Strawbridge --- git-send-email.perl | 57 +++++++++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index 5861e99a6e..3ce5b1aad3 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -787,14 +787,6 @@ sub is_format_patch_arg { @files = handle_backup_files(@files); -if ($validate) { - foreach my $f (@files) { - unless (-p $f) { - validate_patch($f, $target_xfer_encoding); - } - } -} - if (@files) { unless ($quiet) { print $_,"\n" for (@files); @@ -1495,16 +1487,7 @@ sub file_name_is_absolute { return File::Spec::Functions::file_name_is_absolute($path); } -# Prepares the email, then asks the user what to do. -# -# If the user chooses to send the email, it's sent and 1 is returned. -# If the user chooses not to send the email, 0 is returned. -# If the user decides they want to make further edits, -1 is returned and the -# caller is expected to call send_message again after the edits are performed. -# -# If an error occurs sending the email, this just dies. - -sub send_message { +sub gen_header { my @recipients = unique_email_list(@to); @cc = (grep { my $cc = extract_valid_address_or_die($_); not grep { $cc eq $_ || $_ =~ /<\Q${cc}\E>$/ } @recipients @@ -1546,6 +1529,22 @@ sub send_message { if (@xh) { $header .= join("\n", @xh) . "\n"; } + return $header; +} + +# Prepares the email, then asks the user what to do. +# +# If the user chooses to send the email, it's sent and 1 is returned. +# If the user chooses not to send the email, 0 is returned. +# If the user decides they want to make further edits, -1 is returned and the +# caller is expected to call send_message again after the edits are performed. +# +# If an error occurs sending the email, this just dies. + +sub send_message { + my @recipients = unique_email_list(@to); + + my $header = gen_header(); my @sendmail_parameters = ('-i', @recipients); my $raw_from = $sender; @@ -1955,6 +1954,15 @@ sub process_file { } } + + if ($validate) { + foreach my $f (@files) { + unless (-p $f) { + validate_patch($f, $target_xfer_encoding); + } + } + } + my $message_was_sent = send_message(); if ($message_was_sent == -1) { do_edit($t); @@ -2088,11 +2096,20 @@ sub validate_patch { chdir($repo->wc_path() or $repo->repo_path()) or die("chdir: $!"); local $ENV{"GIT_DIR"} = $repo->repo_path(); + + my $header = gen_header(); + + require File::Temp; + my ($header_filehandle, $header_filename) = File::Temp::tempfile( + ".gitsendemail.header.XXXXXX", DIR => $repo->repo_path()); + print $header_filehandle $header; + my @cmd = ("git", "hook", "run", "--ignore-missing", $hook_name, "--"); - my @cmd_msg = (@cmd, ""); - my @cmd_run = (@cmd, $target); + my @cmd_msg = (@cmd, "", "
"); + my @cmd_run = (@cmd, $target, $header_filename); $hook_error = system_or_msg(\@cmd_run, undef, "@cmd_msg"); + unlink($header_filehandle); chdir($cwd_save) or die("chdir: $!"); } if ($hook_error) { From patchwork Fri Nov 11 02:15:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Strawbridge X-Patchwork-Id: 13039514 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 09231C4332F for ; Fri, 11 Nov 2022 02:15:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbiKKCPg (ORCPT ); Thu, 10 Nov 2022 21:15:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbiKKCPd (ORCPT ); Thu, 10 Nov 2022 21:15:33 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AFB360356 for ; Thu, 10 Nov 2022 18:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L+8C0MM6snHRRdjz45vP94VG9Wd0hQv3ew58OaEYX8WG1pChhi/2RIU/FpbH19rRI7PXjr0+QFNNI5x5yEo+GvDD0FkiNVpM04OktMrYL2kvqlWsvgWmlDhqV+gKOpbqFxprE9v29KQY5VG20tT0lsM4eD/SZ42Yhb9Lc8L1b7BqvRypwLKIGVRyr70Re6ScRRc+ix+oPGbqicSHXuK5CV4Y9rvelv5guEAtmJWlWtchgW6GBYUW3p7RJ2kh8d3x5/KLitjXnVNYLXZKkygRenB2DHuiYub3iVKYg9sIDuUTMYE64EDvFOtL3ZcJoD1R13/fjRRnO0vL6mNZ1maqEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Y2EQpht7SwVrC7cYIEU6mIaJOjwT6C8xAqfUXZoza2k=; b=ZCwETKb8lEvhsdYw2C0WCFoOX8TykJZNSnYfRJ09DBCTlvq9ItiFN31dZ9SBqBsqclNfF95DvddwpKlIvjQUVxyt2velUlqLjs/gH6G8OAlO1sN1XQmM2uZ6RrRavsK/dKIsl5CSQm53DPnNdBoWadZD794WWL1XPw5LM6eUN+zp4//4df1vz7zWcA+l/9kzunCBmfXXFI3bvS5ahA8ydnTW8M+SeB0llq9JnIbk/xVVGz0+lvnflNavR3MyE4gdUaVyO8o7aGpGcPfhWbV8rQa5jl3cKo4/zG1f/QMwJeLjkjMQZfo/uslLoEFvakZX8kL94avtnwpEaUDKVhHK5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y2EQpht7SwVrC7cYIEU6mIaJOjwT6C8xAqfUXZoza2k=; b=oMiyBNDVoChEjbNMRi9vhzUnIo5vVMFzCHBLeAlDb2r39ZU6PTXLnUI/Daas6KdNkfvUnYbIZNzr28T28a+wbIyarj54UvQjmcijl70hPh/DGvBTxnaE1dNnLEriZazBZwO6pA6JAoPf3QqrmB/I+J1V+5yatUQXX9jQDrFWbeg= Received: from DM6PR12MB4356.namprd12.prod.outlook.com (2603:10b6:5:2aa::8) by DM6PR12MB4107.namprd12.prod.outlook.com (2603:10b6:5:218::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Fri, 11 Nov 2022 02:15:27 +0000 Received: from DM6PR12MB4356.namprd12.prod.outlook.com ([fe80::70fe:fd7e:da10:fd66]) by DM6PR12MB4356.namprd12.prod.outlook.com ([fe80::70fe:fd7e:da10:fd66%6]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 02:15:27 +0000 From: "Strawbridge, Michael" To: "git@vger.kernel.org" CC: "Strawbridge, Michael" , "Tuikov, Luben" , "brian m . carlson" Subject: [PATCH 2/2] Update sendemail-validate hook docs to add header file parameter Thread-Topic: [PATCH 2/2] Update sendemail-validate hook docs to add header file parameter Thread-Index: AQHY9XN3JiXZNo7x70eId07QZtOeKA== Date: Fri, 11 Nov 2022 02:15:27 +0000 Message-ID: <20221111021502.449662-3-michael.strawbridge@amd.com> References: <20221111021502.449662-1-michael.strawbridge@amd.com> In-Reply-To: <20221111021502.449662-1-michael.strawbridge@amd.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB4356:EE_|DM6PR12MB4107:EE_ x-ms-office365-filtering-correlation-id: 22872178-3e85-427e-a684-08dac38a99a2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WyD4WnLX9Qx5CAy9CF2u2Iks2gD3x90IIw/Epn+ar83nHdrVIhDH12sLe1+l4TKykZhHh/0RGftz1Xf7BKVly8mNEA6A/TprrZwAai6gL8dYPURBqTBBTCoHdN8cMTvtl67ZJcxlj4+pYerGvAAokaOarfmkLyc4lVuuBNlEiM1FnZfYFggRRbStJdZo7UWSYIJMK9lAZJrODKhlFm74l9n9CaH6OJL4/CsXsjhsfX7sSZCOBWNHXLsFXTvfV4kYUllh6YDIMe6kYOnccROcFbwoajq8pbcZzORmZfjrnUon3SbRidWrF8O+x2IbHjaXpLhAChSHQY4mWZTHJRHokTQ44HpfA6+bWWfLGBUs3bziv38C2G+VmWUQOnQMMsRZPr5TWl1HDvUwLGOB55ED/Vvq9E8jyPtecimyhIfuHDqZ8JKMBXYYvV3hL+G/9h0h5WE+o1lpjQl3e9nPtZTspuoVoLRJw76Uk26dKNGCxvm7reTAFI8+ir93h3X9Ezkq6vGeaL2IA4ktxWJfk7m5o4Vcll88dwvdF+SOcOOKBEmcMYkyCZqg5MJSXpaz3CHjIgQ3/j0N2zOchHq3PD8vVibP2imzrDS52CzO6CowXnQwrAEENqOoOfcJr80BX4hXBypKQpmeE2yWSm7dnE0cJIXYi3xw9NXZd5iH03TbQjDg2xLVgJUi2Q3+sImcAKfLA3CuQk9Ug+2tDCrGH7antJHyloHYjNbO3Wk6b69uJ1ufpUl6jB3tji5BGTMzyx7nSVPAtyQ3R+pjD6Qz4NC4tw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4356.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(39860400002)(376002)(136003)(346002)(396003)(451199015)(38100700002)(122000001)(15650500001)(86362001)(38070700005)(4326008)(6506007)(2906002)(26005)(66556008)(6512007)(66446008)(66476007)(2616005)(64756008)(76116006)(91956017)(66946007)(6486002)(71200400001)(8676002)(316002)(83380400001)(8936002)(5660300002)(1076003)(6916009)(41300700001)(36756003)(478600001)(186003)(54906003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?sHwP+Y4GVbI2ImKzD0yHivr?= =?iso-8859-1?q?Cczab7EVAhrJZPsBXlsb+q5WDVMHYxYalVdxLIFzBKleMohoLZmQjLSrPrAm?= =?iso-8859-1?q?an6Bx1gzahkO43iU/N8AWW9CcDwupOp0SRHjjekbrrBLLg6lLI8G5NDkjFXd?= =?iso-8859-1?q?87efUl8DSFsx+M/HmgkgNexgxBYSmrYS0lU5niJrnUdRpeXzgZRC21PpHa7s?= =?iso-8859-1?q?/VvrfBvljip0JLwrK+QKLP+/fzLHLn7Plo5l6juAsuTKNFxMKxO96hbsf3xy?= =?iso-8859-1?q?oNZ5cS2nF19iEnlaNKxOkr9bXYlXBgBWWusHG3NMJPmHNmkuiIeusL0lvQN1?= =?iso-8859-1?q?KHEDH7wAkHcQPwmWMP9tg93H5//a/MqM1hmz6KwaotHIA0PeGFaCwfeoLPTZ?= =?iso-8859-1?q?9huWTaDfn98apoLdT6tOA4QkxtOs75ecqU+nIA7K51psUEJfNq3FwCLgt6DM?= =?iso-8859-1?q?fcHNxbQONAP3yp/zeQpLR72+kS27uO8pGGOhcYMG1jogvjZRJpwNa2NeGcG5?= =?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fccOUlJlkxnT+SisqIb7bIq6gM6mPh2ilR566uNxDc?= =?iso-8859-1?q?qVzciHyDY59oDby638+qvuxTI1CFvvmDSwykFXyPZtyhjTxkDfs7fbnBk1O0?= =?iso-8859-1?q?t7bWHNkdj67pWTN9gmI49HXnuhOSfUrZNAaNxVDiBbZv+Dpe2Zq91ETBT0a2?= =?iso-8859-1?q?k+txizsVN3RbLBpy6iDfKv5b3hvb/BoFV/U7GowerOweaMI0lHwd23vFvf4O?= =?iso-8859-1?q?OYIpPb/J7WdIikMlE?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4356.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22872178-3e85-427e-a684-08dac38a99a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 02:15:27.6510 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6JfjTtzcFKTM00KLmiEeWqY2zCEVWOSvGeSsEpCJ+YFbbxA/s2yvkSpzwONjrE+q2hlCJdgSbFtkf3fRyY1L3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4107 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Add documentation for the new smtp header file parameter used by the sendemail-validate git-send-email hook. sendemail-validate accepts the patch file as the first parameter (same as before) and now also adds the smtp header information as the second parameter. Cc: Luben Tuikov Cc: brian m. carlson Signed-off-by: Michael Strawbridge --- Documentation/githooks.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index a16e62bc8c..c1baf34454 100644 --- a/Documentation/githooks.txt +++ b/Documentation/githooks.txt @@ -583,10 +583,10 @@ processed by rebase. sendemail-validate ~~~~~~~~~~~~~~~~~~ -This hook is invoked by linkgit:git-send-email[1]. It takes a single parameter, -the name of the file that holds the e-mail to be sent. Exiting with a -non-zero status causes `git send-email` to abort before sending any -e-mails. +This hook is invoked by linkgit:git-send-email[1]. It takes two parameters, +the name of a file that holds the patch and the name of a file that holds the +smtp headers. Exiting with a non-zero status causes `git send-email` to abort +before sending any e-mails. fsmonitor-watchman ~~~~~~~~~~~~~~~~~~