From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38343: 27.0.50; vc git: Cannot edit outgoing log (like git commit --amend) Date: Tue, 26 Nov 2019 00:49:18 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205128"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: 38343@debbugs.gnu.org To: Fredrik Nyqvist Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 23:50:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZNBY-000r7v-G9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 23:50:24 +0100 Original-Received: from localhost ([::1]:48880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZNBX-000234-9k for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 17:50:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42828) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZNBD-00022r-OS for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 17:50:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZNBC-0001Vh-Kc for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 17:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43913) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZNBC-0001Va-Et for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 17:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZNBC-000438-Bx for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 17:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2019 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38343 X-GNU-PR-Package: emacs Original-Received: via spool by 38343-submit@debbugs.gnu.org id=B38343.157472216915521 (code B ref 38343); Mon, 25 Nov 2019 22:50:02 +0000 Original-Received: (at 38343) by debbugs.gnu.org; 25 Nov 2019 22:49:29 +0000 Original-Received: from localhost ([127.0.0.1]:49886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZNAe-00042H-QU for submit@debbugs.gnu.org; Mon, 25 Nov 2019 17:49:28 -0500 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:44478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZNAd-00041s-Dm for 38343@debbugs.gnu.org; Mon, 25 Nov 2019 17:49:27 -0500 Original-Received: by mail-wr1-f52.google.com with SMTP id i12so20122234wrn.11 for <38343@debbugs.gnu.org>; Mon, 25 Nov 2019 14:49:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QkigIRM+It4s/owpHDIHWf0ICKNwQi10vkRQkNM6+JE=; b=a/GaLGxLHQ9bsche4WJT0+jmP7UwqQ9YDXL0O0rZVnZcovvPQQbij0oGQcDaCkH2Gq EgPgW3+8jZjaeP9YlaTFm/MasOWG7E97ZHxORPsCSWtx5P4MFLUZ2F54kuvb9SSeIrEM y9OktvU2uiwVo/tYKMUWrp5sg8imNWbkvdk5h7u6CZVChdQqU+D++B1dO+Ih/brCoyqb TRUIjxCXw+qlfec1Qz9cQyPYzoRd7fOfEXE0lbguDS23S9sOZGR6cILYUf59VLNXgnZm Hl301VJuUOW62totnzgYTFdWISSImoHuWt5r1gDu2w21gk/mIfK7rZCmDUvaMJdPlfX6 kwkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QkigIRM+It4s/owpHDIHWf0ICKNwQi10vkRQkNM6+JE=; b=nqycETxo1T/YUHEQ+nSqmHricKg9q7tEGiPHRjR1hw7iV+NSfBksREpX0fGnVVhAZ4 xsDUED6TpRIU4mnisIjXkVncb/0OVcMohZ1GWhxcjlAGUQIMuMcD7A3vkve37i0rNCmM AOJrw6LjHU/SiF2hdzeXf5vtKGkVqtv+g3p4wwB60ORvyAjHW/rKqEFB0hDLpgR0JsR9 8todK9fwwEMccEkOaYzsj+5/agDNNdmu8qiCScuslOiGF1J507J7PNU4jyQdnFGFqXqF 9BSMlNNNGkRmswCdiMQLhuNGzLseEgfg+KUkio8n/jULrCyIgSWAQZH1LNtl/z0As0ke Qgtw== X-Gm-Message-State: APjAAAVTQV5dmPFulSnVgjCDqcGbyvrenJClodX6HsO+oZC3M5OZlmBq q6rhXTx3rc++NNGznu8AA6Iqnqha X-Google-Smtp-Source: APXvYqympq/y1l9gfMdGefEcjnQ7SmcC62Cq2Nv9yR+ZSXpA5ZgIkaWgZFdSbVpKRW0Pg1VFQO5NcA== X-Received: by 2002:adf:e5ce:: with SMTP id a14mr12630006wrn.214.1574722161055; Mon, 25 Nov 2019 14:49:21 -0800 (PST) Original-Received: from [192.168.0.5] ([212.50.117.215]) by smtp.googlemail.com with ESMTPSA id r15sm12757149wrc.5.2019.11.25.14.49.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2019 14:49:19 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172395 Archived-At: On 25.11.2019 22:16, Fredrik Nyqvist wrote: > Yes, I have tried the option you mention to edit the last commit with > C-x C-e and it is working fine. > But It seems that it only allows amending the last commit if I have > edited a file. Yes. Not sure how to change an arbitrary commit in Git anyway (without interactive rebase). The best approximation looks like this: https://stackoverflow.com/a/48999882/615245 > As I understand it I need to edit a file and then do vc-next-action to > get to the log-edit buffer > where you can do C-x C-e. Yes. > I could not find a way to do this if just the commit message is supposed > to be updated. And that is indeed the main downside of our current solution. (The way to do it is to edit, call vc-next-action, then undo the edit in the file, but commit the amended message anyway. Which could be more efficient).