From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: On the adoption of transient.el Date: Sun, 31 Jul 2022 09:08:25 +0000 Message-ID: <3925d696-f742-6ac7-7a05-8b3faac6e819@inventati.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3319"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Cc: emacs-devel To: juri@linkov.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 31 11:12:29 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 1oI4zt-0000kA-5O for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 11:12:29 +0200 Original-Received: from localhost ([::1]:56932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI4zs-0005wV-52 for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 05:12:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI4wG-0003gI-K9 for emacs-devel@gnu.org; Sun, 31 Jul 2022 05:08:44 -0400 Original-Received: from confino.investici.org ([2a11:7980:1::2:0]:59389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI4wE-0004B9-Ar for emacs-devel@gnu.org; Sun, 31 Jul 2022 05:08:44 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Lwb5R4c5hz11y7; Sun, 31 Jul 2022 09:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1659258507; bh=RKwwv3EWRyryKNwK/67wVWcnsR6OhtRXYoGK5feK+qE=; h=Date:To:Subject:Cc:From:From; b=OIOO6ibTJtUUd4RNxsoITeWZ4w5wT3quMKnV0HbXGHJ+c9zC/cq+uKhKkLWNMewFM QkVKS+X84kuTXix4XBrZwcPebizY0WYIXaSEVpY+sgT6DHE1VmKZSUkVNnoGqLKCVM wqexNjYoOZfoVUN8hyKBQKmyHFX1jEprN8sMBYdM= Original-Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4Lwb5R1Zl9z11Ph; Sun, 31 Jul 2022 09:08:27 +0000 (UTC) Content-Language: en-GB Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_A1=0.384, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:292908 Archived-At: > Currently I'm finishing implementation of a new vc command > that will allow committing from a diff buffer. So for > example, after displaying all changes with e.g. 'C-x v D' > you can remove some unneeded hunks (with e.g. 'M-k' 'diff- > hunk-kill'), then on the remaining hunks type 'C-c C-c' in > the diff buffer. It will create a usual *vc-log* buffer > where typing 'C-c C-c' will commit only changes from the > diff buffer. Internally it works by running three git > commands: > `git stash push -m stash_name -- list_of_file_names_from_diff` > `cat diff_buffer.patch | git am` # should also handle return code > `git stash pop -q` Hi Juri, do you have any news on this command you were working on? Thanks -- Manuel Uberti https://manueluberti.eu