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,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24822 invoked from network); 13 Jul 2021 22:38:45 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 13 Jul 2021 22:38:45 -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 1m3R36-0039u9-3s for ml@inbox.vuxu.org; Tue, 13 Jul 2021 17:38:44 -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 1m3R35-008iUp-J8 for ml@inbox.vuxu.org; Tue, 13 Jul 2021 17:38:43 -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 1m3R33-008iUh-Jj for ding@lists.math.uh.edu; Tue, 13 Jul 2021 17:38:41 -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 1m3R31-000xVQ-GP for ding@lists.math.uh.edu; Tue, 13 Jul 2021 17:38:41 -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:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=4vjHXTQbB/vgYFmh6K5QOChZXGH0ZGvlpVBbI/XhUqA=; b=bP3txzbeLDMsas1zScXemH0UmC his23NdIK0IqiQfW0lbC0Qp6F3vzRNruIXz0jKKnLDhWGFCgqaoD4+X4IdOIW+f3BdRBYo0iDNEO6 afkC0xyIbiYIlsDI0eS538gESp8pOgozddzTZJ1wUIq4dNObYOWoAt9nU1+OXKB/1QxE=; Received: from mail.ericabrahamsen.net ([52.70.2.18]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3R2u-0005FW-E8; Wed, 14 Jul 2021 00:38:34 +0200 Received: from localhost (75-172-126-110.tukw.qwest.net [75.172.126.110]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 14669FEB2F; Tue, 13 Jul 2021 22:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1626215910; bh=4vjHXTQbB/vgYFmh6K5QOChZXGH0ZGvlpVBbI/XhUqA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=l/lJQUDZAV7zXeYKASaAC4ea2i5LhnVQnA+zhcZzEPoKKTNAK9F1IXufj4JqR3sS7 0UtMU9nOVaT/pvNnpzMc4DgTPHqLzCgDLQMLRPkuhvGrT1Iwbnac+NUVWbBZVxlRXi BtPXRrQwnfjsNA2HLiAs2lRa523rxEiOla22sxIE= From: Eric Abrahamsen To: Lars Ingebrigtsen Cc: ding@gnus.org Subject: Re: Applying patches sent via email References: <87h7gxao1y.fsf@ericabrahamsen.net> <87bl75opc5.fsf@gnus.org> Date: Tue, 13 Jul 2021 15:38:28 -0700 In-Reply-To: <87bl75opc5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 13 Jul 2021 23:50:50 +0200") Message-ID: <87sg0h96vv.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> 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. > > If it's a patch generated from Git, then "git am" does indeed work > fine. For other random patches, I use `debbugs-gnu-apply-patch' (from > the debbugs package), which tries to do a bunch of heuristics that... > sometimes work OK? I mean, I tweaked it a lot over the years, and it's > geared towards Emacs, but... That's good! You're right it's pretty Emacs-specific, but it's got all the bits and pieces you need in it. I suppose the nice thing to have would be something that was vc.el compatible, that let you move any kind of patch out of a Gnus message and into any kind of vc repository.