From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam James Newsgroups: gmane.emacs.devel Subject: Re: Supporting git-send-email/hg email in VC Date: Wed, 24 Aug 2022 22:31:22 +0100 Message-ID: <3E4E0239-22AA-4AB9-A092-3DC5404983C0@gentoo.org> References: <848rndq2i7.fsf@iki.fi> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_533258D7-6CA0-4463-AE99-99D8835F06E3"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Philip Kaluderdic To: Antoine Kalmbach Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 24 23:33:16 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQxzw-0001ja-QG for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Aug 2022 23:33:16 +0200 Original-Received: from localhost ([::1]:41564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQxzv-00038d-PJ for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Aug 2022 17:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQxyJ-0001R4-MV for emacs-devel@gnu.org; Wed, 24 Aug 2022 17:31:35 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:51636 helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oQxyG-0007ua-LO for emacs-devel@gnu.org; Wed, 24 Aug 2022 17:31:35 -0400 In-Reply-To: <848rndq2i7.fsf@iki.fi> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=140.211.166.183; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294049 Archived-At: --Apple-Mail=_533258D7-6CA0-4463-AE99-99D8835F06E3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 24 Aug 2022, at 12:56, Antoine Kalmbach wrote: > > > Would it make sense for Emacs' VC to support emailing patches from > within Emacs? It kind of doesn't make sense that I can do mostly > everything in VC... but I have to jump to the command line (shell) to > use git-send-email. > > [snip] > > If people think this would be a useful feature, I can open a bug report > to track this and start working on it. The proposed reference > implementation for Git would be to (1) ask the user for a ref (2) call > git format-patch with that (3) compose a new message in Emacs, and set > the body of the message to be the output of git-format-patch (OR attach > the file) and (4) let the MUA take it from there. This definitely sounds invaluable to me. Thank you. > > Alternatively, it would be possible to use a combination of with-editor > + git-send-email, but only if we should need ot abide by the "rule", > because to me there aren't many nuances beyond using the format > specified by git-format-patch with your own MUA vs. using > git-send-email. Or do I not know enough about the latter to not see the > missing pieces? That would work for me too, might be worth asking a git expert though. Often, people are told to defer to git send-email because it definitely does Things Right, but I haven't looked into the things it takes care to do correctly. It might be easy for Emacs to do those. > > [1] https://git-send-email.io/#step-3 > Best, sam > -- > Antoine Kalmbach > --Apple-Mail=_533258D7-6CA0-4463-AE99-99D8835F06E3 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCYwaYql8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kPCIAQDYTf68l2w/kf2aQqvlBZ3zt67YsV3seaSJuXVT3xfLQgD+LOADp12fIw2x yfNLWgA/W4cy3AomV3efdT1G04b3VwE= =hAmF -----END PGP SIGNATURE----- --Apple-Mail=_533258D7-6CA0-4463-AE99-99D8835F06E3--