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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19154 invoked from network); 13 Jul 2021 21:42:37 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 13 Jul 2021 21:42:37 -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 1m3QAl-0039Yc-1h for ml@inbox.vuxu.org; Tue, 13 Jul 2021 16:42:35 -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 1m3QAk-008hwa-F8 for ml@inbox.vuxu.org; Tue, 13 Jul 2021 16:42:34 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m3QAi-008hwS-Fr for ding@lists.math.uh.edu; Tue, 13 Jul 2021 16:42:32 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m3QAg-0039YH-4E for ding@lists.math.uh.edu; Tue, 13 Jul 2021 16:42:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:Message-ID:Date:Subject:From:To: Sender:Reply-To:Cc:Content-Transfer-Encoding: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=yHN8CFomBXbgr4tNFhDRvMVt6bo1ADYYqn9H3/iL+VI=; b=oeR2Mbdz4/KG4/Yap0+f2Ym6za Aw4Zf6uHptFmHuBM9uCPtmOc8mXeIjTsXsG29NfmfTro0UjKuqSdD7YaWrqHMqJLStEDqcDejNPJp q7WosYzmmOpmY41M50iIHeWXm3YknOpyrTPUCZcFipMu69+d5LNu0wQLZuC6q/67WFvo=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3QAZ-0004rp-39 for ding@gnus.org; Tue, 13 Jul 2021 23:42:25 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m3QAY-0004JI-3q for ding@gnus.org; Tue, 13 Jul 2021 23:42:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Applying patches sent via email Date: Tue, 13 Jul 2021 14:42:17 -0700 Message-ID: <87h7gxao1y.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:skrXbSXOPM2NT8FJaAIvCFWZ9Bk= List-ID: Precedence: bulk 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. Please let me know if you've got anything like this on hand! TIA, Eric