From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a patch (bug#52349) Date: Tue, 30 Aug 2022 20:18:13 +0300 Organization: LINKOV.NET Message-ID: <864jxtzm3u.fsf@mail.linkov.net> References: <166171593185.16640.41619657947456727@vcs2.savannah.gnu.org> <20220828194533.23A6BC00889@vcs2.savannah.gnu.org> <87r10znm0y.fsf@gnus.org> <83fshfvvyn.fsf@gnu.org> <83bks3vtf5.fsf@gnu.org> <83tu5uug68.fsf@gnu.org> <86o7w1zniw.fsf@mail.linkov.net> <83ler5u0fj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30931"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: dgutov@yandex.ru, larsi@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 30 19:32:00 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 1oT55k-0007pS-3k for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Aug 2022 19:32:00 +0200 Original-Received: from localhost ([::1]:46766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oT55i-00073X-HN for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Aug 2022 13:31:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT4wr-0000PH-QJ for emacs-devel@gnu.org; Tue, 30 Aug 2022 13:22:59 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT4wp-0006OZ-HJ; Tue, 30 Aug 2022 13:22:49 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id C9492240005; Tue, 30 Aug 2022 17:22:42 +0000 (UTC) In-Reply-To: <83ler5u0fj.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Aug 2022 20:05:20 +0300") Received-SPF: pass client-ip=217.70.183.193; envelope-from=juri@linkov.net; helo=relay1-d.mail.gandi.net X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, GAPPY_SUBJECT=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:294370 Archived-At: >> >> But even if we initially only support this in otherwise clean trees, >> >> it will be a huge advantage vs the current situation, where this >> >> feature is simply not available. >> > >> > Will the advantage be significant? I really have to ask, because IME >> > applying an external patch and them committing the files as a whole never >> > felt particularly painful before (aside from resolving any conflicts or >> > corrupted whitespace, which the new feature doesn't help with). >> >> Indeed, just 'M-! git apply' before using 'vc-checkin-patch' will do the job >> in case of an external patch. > > Unless some of the hunks are wrong or produce conflicts or are > rejected due to 1001 reasons. Which is exactly the use case I thought > this enabled. Sorry for misreading. 'vc-git-checkin-patch' is conflict-free. It bypasses the working tree. OTOH, applying a patch to the working tree often requires manual resolution.