From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22354 invoked from network); 15 Jul 2021 16:49:11 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 15 Jul 2021 16:49:11 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m44Xs-004F0Y-Po for ml@inbox.vuxu.org; Thu, 15 Jul 2021 11:49:08 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1m44Xs-0094Kr-G4 for ml@inbox.vuxu.org; Thu, 15 Jul 2021 11:49:08 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m4413-00942Z-Pz for ding@lists.math.uh.edu; Thu, 15 Jul 2021 11:15:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m4411-0020UB-CD for ding@lists.math.uh.edu; Thu, 15 Jul 2021 11:15:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=MsJJ8hu7MXMWlL2vwVUq3HfvhjjfBnbVX1/Uaqc0brE=; b=C6//mNCPPw3nRH67TMObRYeSsN ObqL0OwQnjEgUucZhLE5nVs34xMMZl9bnN2Jj+v00trliEYrl0cH9gsq+sUIQW7M6Fn6xGeC7tBdR xD7sv4U+AEXapQedqNkdbwVZpvlmMg5DSMMiFB8bhdwUZslhT0ELMEoDv3gY3Pw/7WU0=; Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m440u-00024t-Ai for ding@gnus.org; Thu, 15 Jul 2021 18:15:06 +0200 Received: by mail-ej1-x62b.google.com with SMTP id dp20so8280793ejc.7 for ; Thu, 15 Jul 2021 09:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=MsJJ8hu7MXMWlL2vwVUq3HfvhjjfBnbVX1/Uaqc0brE=; b=I9o0QxcqktTSVhvQLP/05m05+qjFxNVnqmhu6ugkouiIEHkiX8uqNvxfJvpX7zDpee VCklfPFsw01qg4p203L8DZovpSZXmNnHvNrb9HAaG2eFzLbKDr6f7CExeNm9dxGLUfbW Z58MS24hKwGKSTp8T8zWZE+aFcrNG+LswtIvUa8J6byNkwj/3OGRMncT2dZ3QN5rD7sr 7fbeofRtZlBQGo6B2VrBmjrQsmgSzEni1LBdCXRc0T/4mWXCAeP2UuvN2ubbOlkKbd5C 7J54oLWH9a+L2iC3DehGu6PUpEBIe0eP3r5fom7sEiepYmqqk5BUAFjZXXuyvUSzSMEk Fj+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=MsJJ8hu7MXMWlL2vwVUq3HfvhjjfBnbVX1/Uaqc0brE=; b=WCkGTfTnfiiz2/uP4hz9Yjy9PwYrsAniOMPn2+hFgx/5cMPdjxHRcXoV7vewMPJClD Iek5rO1a15e4tFGhkgzT4orvy4lAML2CfIsDubSH1zZagX/MR/QZYYu5aQ1z9gidi+XR tL2bfK6zdg47C2pis8aVhv4Q95YwmMlvoPRfMFa7/JOn0Cn99egxvNPav6wMFzCfsbI7 q83vLKs9M8gtjtdBidtHuLbI3hfSk9Yk0+6yrqsHEpGryGIZdRYeMCbUYvnj++wzK411 kcxVGJtfU6ONfaTNu0j51H0uqn008Azbljdh6Yrxo8YQg+t8LCnOelhMbxUvxSFy7nX2 tG+A== X-Gm-Message-State: AOAM530eID7XJLz1qK2WKr8m8dDWHn+NgXlDjSWxiRgFUF8n3c6qFeb6 9tGI3spDHLZLLybm2XxSqRA= X-Google-Smtp-Source: ABdhPJyksK8SDk0LprBPf/iz1xGfcJEyEvj/r+6WDFcvhYDrP2Q+Fl7wtnelc9fjvY6lqgyVnVQ/Yw== X-Received: by 2002:a17:907:a04e:: with SMTP id gz14mr6432444ejc.24.1626365702905; Thu, 15 Jul 2021 09:15:02 -0700 (PDT) Received: from localhost ([185.112.167.53]) by smtp.gmail.com with ESMTPSA id dn23sm2647534edb.56.2021.07.15.09.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 09:15:02 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: Applying patches sent via email In-Reply-To: <87h7gxao1y.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 13 Jul 2021 14:42:17 -0700") References: <87h7gxao1y.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Thu, 15 Jul 2021 18:15:00 +0200 Message-ID: <20210715181500+0200.245407-stepnem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk On Tue, 13 Jul 2021 14:42:17 -0700 Eric Abrahamsen wrote: > Hi all, > > I've always been slightly annoyed at the hoops I have to jump through to > apply git patches that I get in email to various repos that I have on > disk. I'm starting to realize that it's actually easier than I thought > (specifically, "git am" is much more capable than I realized), and I'm > thinking that there's only a couple bits of glue missing, which means > someone has probably already done this. > > Does anyone have a facility that can be used to apply git patches > received via email to local repos? I'd like equivalents to both > `gnus-summary-pipe-part' and `gnus-summary-pipe-output' -- ie applicable > either to a mime part or to the message as a whole -- where it prompts > me for a local directory (git repo), possibly for a git branch in that > repo, then handles the running of "git am" for me. For git, piem.el comes close to those requirements: https://docs.kyleam.com/piem/ It lets you define local repository locations corresponding to mailing list addresses and creates a branch to apply the patch(es) cleanly (that's customizable). It also lists some other tools of potential interest: https://docs.kyleam.com/piem/Related-projects-and-tools.html#Related-projec= ts-and-tools --=20 =C5=A0t=C4=9Bp=C3=A1n