From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Amending commits Date: Sun, 25 Sep 2022 15:19:45 +0200 Message-ID: <8735cf6172.fsf@igel.home> References: <87h70vbw2f.fsf@gnus.org> <877d1ru3rd.fsf@posteo.net> <87zgenr812.fsf@gmail.com> <8735cfty9v.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3519"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: Visuwesh , Lars Ingebrigtsen , "Emacs-devel@gnu.org" To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 25 15:24:12 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 1ocRcC-0000hL-Ft for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Sep 2022 15:24:12 +0200 Original-Received: from localhost ([::1]:39694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocRcB-0003w3-H8 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Sep 2022 09:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocRY1-0001Gz-L2 for Emacs-devel@gnu.org; Sun, 25 Sep 2022 09:19:53 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:59086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocRXz-0005SW-3k for Emacs-devel@gnu.org; Sun, 25 Sep 2022 09:19:53 -0400 Original-Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Mb61b0XvKz1r4pZ; Sun, 25 Sep 2022 15:19:47 +0200 (CEST) Original-Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4Mb61Z71D1z1qqlR; Sun, 25 Sep 2022 15:19:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id w28rOeex-P44; Sun, 25 Sep 2022 15:19:46 +0200 (CEST) X-Auth-Info: J4YwiM28IexBO3Uw3ux3/8Fr8YRv+SqbR/M1Gq6hRK4aVH5JcaWobQ+T67b9Uf2L Original-Received: from igel.home (dynamic-046-114-208-236.46.114.pool.telefonica.de [46.114.208.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 25 Sep 2022 15:19:46 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 590032C092F; Sun, 25 Sep 2022 15:19:45 +0200 (CEST) X-Yow: ...It's REAL ROUND.. And it's got a POINTY PART right in the MIDDLE!! The shape is SMOOTH.. ..And COLD.. It feels very COMFORTABLE on my CHEEK.. I'm getting EMOTIONAL.. In-Reply-To: <8735cfty9v.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 25 Sep 2022 12:49:00 +0000") Received-SPF: pass client-ip=212.18.0.9; envelope-from=whitebox@nefkom.net; helo=mail-out.m-online.net X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:296218 Archived-At: On Sep 25 2022, Philip Kaludercic wrote: > Visuwesh writes: > >> [ஞாயிறு செப்டம்பர் 25, 2022] Philip Kaludercic wrote: >> >>>> There should be a command in `vc-dir-mode' that allows you to amend the >>>> last commit, I think. >>> >>> That would be good, because it would also allow easier to reword a >>> commit that doesn't require any code changes. >> >> As someone who does not really understand Git, does this mean we are >> rewriting the log message without also committing a change? I thought >> that was not allowed by Git. > > Git allows it if you pass the --allow-empty flag. You don't need --allow-empty if you use --amend. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."