From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fredrik Nyqvist 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 21:43:54 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000de8a71059845f09e" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="82362"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38343@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 21:46:33 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 1iZhjE-000LED-Do for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 21:46:32 +0100 Original-Received: from localhost ([::1]:58946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZhjC-0001iJ-MH for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 15:46:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44450) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZhhp-0000mM-9Q for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 15:45:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZhhn-0002WP-Us for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 15:45:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZhhm-0002Ug-DX for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 15:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZhhm-00048r-Ce for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 15:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fredrik Nyqvist Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 20:45: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.157480105215829 (code B ref 38343); Tue, 26 Nov 2019 20:45:02 +0000 Original-Received: (at 38343) by debbugs.gnu.org; 26 Nov 2019 20:44:12 +0000 Original-Received: from localhost ([127.0.0.1]:53060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZhgy-00047F-1E for submit@debbugs.gnu.org; Tue, 26 Nov 2019 15:44:12 -0500 Original-Received: from mail-qt1-f180.google.com ([209.85.160.180]:36130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZhgw-000473-GP for 38343@debbugs.gnu.org; Tue, 26 Nov 2019 15:44:10 -0500 Original-Received: by mail-qt1-f180.google.com with SMTP id y10so22927293qto.3 for <38343@debbugs.gnu.org>; Tue, 26 Nov 2019 12:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dFCkVuCDo0oVUbTyIcmrCWRCYjKZncgQjC1YyV9+VGc=; b=CFOEO0fuiZC2QUWa3GH8Kp2QDfGGdy1lWtF45FH/jXJOU4d0C7pkjth2VTt8YfVA1Z h7Dc6Meb7FLzbEB9ZNJg7RQX0gHvqBTL9e4Bazlf49Z7Q5a1o4HV+VunCgBnILxmlkQ3 7arlx/UKG4NLaMA2eRTzlN9FenMb8c6qHMigUktsdR2RMha7LWPnsMkLouVjNpqcJVUe l6dr9ZR2O8d916ihn/Y6P5J8ExlP3U9hnQnF5us4OiKhtVOtEUv0QqJmBNeezSmAmkRn a3YgsqcQUo0tGSYSmRTfBxltBXjvk/iqQvtgeFge2Rk/3NQh/X48PlGsaJzvhgD24B2G fCNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dFCkVuCDo0oVUbTyIcmrCWRCYjKZncgQjC1YyV9+VGc=; b=IOGX+IwPhu9BTZqJ2kYa08hBWisuiRmvdyQ3vOpTFcbmuzOc9Y/ZlbkTHj6PoaUVSl 59/zyrdcP9ZIYyhxPQn+L3OCV3Oqtf40No59rNXS6/8QXw4F2Ywrlr/zp9NIJK0er8ua SLoIYGK7WlQrPkqiOVnoRDJ0T9MGnQ75jiWTb2t+iGVT8imnbQCD95Ndj6PL8aG6ivEq K2jewTiPrDraCwhD8nbYNoX8oXEiJJkHfnpCSSQhPZdM+MKrOpqF2Q30+emvVu3axyut ahCUt5f01CjG/z7Ck+gfTSxzucyPiyM2SHYvwKXc3dmMu3gtHUqNCDE0OzZ4qefyyo6F ti/Q== X-Gm-Message-State: APjAAAUXz1vWAsvLqw1O2LWNsQwkclkk4GmLZcHMx3/HNJMC6h1RMWd4 hIHA4qa1EYl98xt3K1kpv0MIvJwa9OIm5bhnAkk= X-Google-Smtp-Source: APXvYqxfYx8+NcH8X6yjpn+jDZA/Lrl/VEum0DB8YHb074op79EMVGcaFSvM988z71aqkrnt2m1tj8U3ju9mIja/6WQ= X-Received: by 2002:ac8:649:: with SMTP id e9mr36858654qth.178.1574801044833; Tue, 26 Nov 2019 12:44:04 -0800 (PST) In-Reply-To: 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:172487 Archived-At: --000000000000de8a71059845f09e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den m=C3=A5n 25 nov. 2019 kl 23:49 skrev Dmitry Gutov : > 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 I am not sure how to do it in a good way either. Maybe the option to edit an older commit message could be skipped for vc-git. And then just allow amend on the latest one. --000000000000de8a71059845f09e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Den m=C3=A5n 25 nov. 2019 kl 23:49 skrev Dmit= ry Gutov <dgutov@yandex.ru>:<= br>
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

I am not sure how to do it in a good way either. May= be the option to edit an
older commit message could be skipp= ed for vc-git. And then just allow amend
on the latest one.


--000000000000de8a71059845f09e--