From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New Git hooks for checking file names in commit messages Date: Sun, 23 Apr 2023 08:36:40 +0300 Message-ID: <83wn23yxav.fsf@gnu.org> References: <838rel46ou.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, jporterbugs@gmail.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 23 07:36:46 2023 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 1pqSP0-0005YD-GE for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Apr 2023 07:36:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqSOc-0007iB-FB; Sun, 23 Apr 2023 01:36:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqSOb-0007hs-1W for emacs-devel@gnu.org; Sun, 23 Apr 2023 01:36:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqSOa-00068Y-M0; Sun, 23 Apr 2023 01:36:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gV7qvE2VxZtjRz5NPLZAudGvBaVMWkTSw2GBQz+G/8s=; b=lnenbb+fLhsp AlwQ2jI6UD+/0WYkVN/IzhZRbffYOqw3Ajc6wVnFrKgbnttjfo5oPaxo8ncesutHTjfZPAKw0wFfp SQm1dYqInqi7JsSMhxs8JpRN2ciSwnVqG+1U8LHiDvIVnvjF5Vw9vW7QHC0cdhWePEs3THQkYoYRn d+OtEb2vQf4oKEJaXIj8eVcvlx0gVK27moDUq0CNJ/XVuJXfFp7MwF+l/fWYnYAumHszCHegl9bsD eiVrSnmjC4Ywd61lUY5CY1vskmxCKk/rgG3K6hrrcLEg1YhNc3hnAeFJBO8jxTaSufTb/XmMIsLxr gAe0EVVOoACNEXGbd17A1g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqSOZ-0002Nf-O3; Sun, 23 Apr 2023 01:36:20 -0400 In-Reply-To: (message from Dmitry Gutov on Sun, 23 Apr 2023 02:55:14 +0300) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305595 Archived-At: > Date: Sun, 23 Apr 2023 02:55:14 +0300 > Cc: jporterbugs@gmail.com, emacs-devel@gnu.org > From: Dmitry Gutov > > On 21/04/2023 18:05, Eli Zaretskii wrote: > > It is still helpful, because as long as you didn't push, you can still > > do > > > > $ git reset HEAD^ > > > > and then fix whatever needs fixing and commit again. > > When only the commit message is problematic, > > git commit --amend > > is usually a more ergonomic choice. This was already mentioned up-thread, so no need to reiterate. Alan asked what to do if that is not enough, and that's why I mentioned "git reset".