From patchwork Sat May 6 22:35:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 49841 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1285B27BBEA; Sat, 6 May 2023 23:36:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 69D1B27BBE2 for ; Sat, 6 May 2023 23:36:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvQVY-0004OD-8Q; Sat, 06 May 2023 18:36:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvQVW-0004Ni-I5 for guix-patches@gnu.org; Sat, 06 May 2023 18:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvQVW-0003r9-9F for guix-patches@gnu.org; Sat, 06 May 2023 18:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvQVW-00025o-2v for guix-patches@gnu.org; Sat, 06 May 2023 18:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63215] [PATCH 1/2] client: Support passing options to git send-email. References: <20230501205639.16201-1-arunisaac@systemreboot.net> In-Reply-To: <20230501205639.16201-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 May 2023 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63215 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63215@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 63215-submit@debbugs.gnu.org id=B63215.16834125488012 (code B ref 63215); Sat, 06 May 2023 22:36:02 +0000 Received: (at 63215) by debbugs.gnu.org; 6 May 2023 22:35:48 +0000 Received: from localhost ([127.0.0.1]:35929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvQVI-00025A-8L for submit@debbugs.gnu.org; Sat, 06 May 2023 18:35:48 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:45672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvQVF-00024s-D5 for 63215@debbugs.gnu.org; Sat, 06 May 2023 18:35:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GS5z0c4uMKIYg/s/5mo/B0Ggam8gi+s26/147IVrY6U=; b=pw50yNxHkhZ+nJsVqu0NPSwQod s5nHpIKuhEvWrD6jQ+udWPGjsD1kdD4soqT7x6IkMaVWC1ZWIA8tXTkbDIZsQoDN/+Ilr45kS7Yts HKGKC1xYYc1ThPioD/oAk3VQ960YRRIEoOCpmEdPV+T4EWJVJJdobdelhNwppimyQY3Vq3Wlro9Cz fOoivemN6m8g0aigAGg5kgXX16+mzXGkPdapgVAQysFK6FBnCUXLNnvQbsv06MQNUIO/mbMjYnF4t AalKVxLUGlx4jmjsJ28fdcXSQnQbcdb+GQT9S7QXP9GaYbhlg48WfOATYu2tlCGmlZg/mIGp9A5xE VTqd7y6A==; Received: from [192.168.2.1] (port=41376 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pvQVB-0005PK-0p; Sat, 06 May 2023 23:35:41 +0100 From: Arun Isaac Date: Sat, 6 May 2023 23:35:19 +0100 Message-Id: <20230506223520.27933-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * mumi/client.scm (git-send-email): Add options optional argument. --- mumi/client.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mumi/client.scm b/mumi/client.scm index b8d588b..2750836 100644 --- a/mumi/client.scm +++ b/mumi/client.scm @@ -207,12 +207,13 @@ arguments." (cut proc port) (cut close-pipe port)))))) -(define (git-send-email to patches) - "Send PATCHES using git send-email to the TO address and return the -message ID of the first email sent." +(define* (git-send-email to patches #:optional (options '())) + "Send PATCHES using git send-email to the TO address with +OPTIONS. Return the message ID of the first email sent." (let ((command (cons* "git" "send-email" (string-append "--to=" to) - patches))) + (append options + patches)))) (display (string-join command)) (newline) (call-with-input-pipe command