From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +Fk0ODRLUGSQgwEASxT56A (envelope-from ) for ; Tue, 02 May 2023 01:28:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KHlyNzRLUGQx5QAAG6o9tA (envelope-from ) for ; Tue, 02 May 2023 01:28:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A89EB1A464 for ; Tue, 2 May 2023 01:28:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptcOL-0002cc-IH; Mon, 01 May 2023 18:53:09 -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 1ptcOF-0002bG-HN for guix-patches@gnu.org; Mon, 01 May 2023 18:53:03 -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 1ptcOE-0007hv-Hc for guix-patches@gnu.org; Mon, 01 May 2023 18:53:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptcOE-0001Me-Dq for guix-patches@gnu.org; Mon, 01 May 2023 18:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63215] [PATCH v2 mumi 1/2] client: Support passing options to git send-email. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 May 2023 22:53: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.16829815375158 (code B ref 63215); Mon, 01 May 2023 22:53:02 +0000 Received: (at 63215) by debbugs.gnu.org; 1 May 2023 22:52:17 +0000 Received: from localhost ([127.0.0.1]:41221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptcNU-0001L3-U9 for submit@debbugs.gnu.org; Mon, 01 May 2023 18:52:17 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:55306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptcNT-0001Kk-Ir for 63215@debbugs.gnu.org; Mon, 01 May 2023 18:52:16 -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: References:In-Reply-To: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GS5z0c4uMKIYg/s/5mo/B0Ggam8gi+s26/147IVrY6U=; b=pZCeP8B5R/BZNYEh4rd5BfgisW YCu8czduQrBA2Bf5u71ErDznSVVaTEuB3fzS67yRNE4jOMywfXZBBBW5+Vl+VsqnF24KBa4HexNBB EJHWrDqPruaazHhWtKrYZwWStXfdOZ2zsCsljlMsx642YKEXERq2kayot0XEwGD97TKZKzrmnXy/M bCpMDstscEGiY3diZ53FMY7VMs6tfKajkhf/CUo3RCQ+i1YNGEq5u9EpFGRCHj0JL81CgulnPNm8y MxmC0gap64P3wjMw3wrFLBegfoyolKGlLGor94AJtBE1Zm2QgxUNkc2A+X1MV9DbNZ6sxjyxiFz3u uBCH8v7Q==; Received: from [192.168.2.1] (port=48798 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 1ptcNP-000JcC-2l; Mon, 01 May 2023 23:52:12 +0100 From: Arun Isaac Date: Mon, 1 May 2023 23:51:57 +0100 Message-Id: <20230501225158.18612-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230501225158.18612-1-arunisaac@systemreboot.net> References: <20230501225158.18612-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682983732; a=rsa-sha256; cv=none; b=RqbkcWubBXHwDey/pO7XShPqdaerPcfGWGZl6E23Cjqavj24Pq62z26NQO8uJpyjgNmDFx IGdcvrlLG9BQW/GnxgOrPDH8mfgypQ8j5Rvz/X/z1cLOJofUWqLaib82Yr8eFxmsJgKYz/ gPXT3P7r2fzHbSsxL+fkBgAOfL9N4vGqoY3OHF9Ct8JpIRt0qr5lyngiQEQWnlYl4s9hfS OoJUGt8WNOqebpuJB/t9AFdUNM8O7UzPcuxu07AnEk6qefp6oSwJQVhCLx77l6FuEAxJHb f9aV/GLC8q0qfGvNuVj5swg8SyKW0IEYm0/Jwe1GJUBT3EfFtxUudeUDmrmgww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=pZCeP8B5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682983732; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GS5z0c4uMKIYg/s/5mo/B0Ggam8gi+s26/147IVrY6U=; b=KgL8Zk+CiBQWAxfK69CK+Byfxkt98z7xTDMbMjAfv+oeP+yL7R1SLEz0UGTrL8WZJsKvFC QcDHhWH54J6gMOHU7sWjCUHUb5oRaVZE6g3/OiVZ5dYZIP/1atC+vckgEQ2Da5Hqu464NQ +HeR3vXmppbcEmg42+6sb9wAPRf9rMOJxqfdkCXY1Fzc6otSV7Eg3HoOK21SVkNx9Nwq0t VgyR7pFADTUQQcsETDyetVPJba7voEYuuH0JdGhQhkiMaS4m+b2JylbSZqk2Cebqk6lv6F ANemtjILTJKMe7Y8hziDHaL91XLBMw8ullsJtBE6kLHMMGKUzk6kKEP+Obfk2g== X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=pZCeP8B5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Spam: Yes X-Migadu-Spam-Score: 8.79 X-Spam-Score: 8.79 X-Migadu-Queue-Id: A89EB1A464 X-TUID: F5jqC4u64qTG * 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 -- 2.39.2