From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: git problems: >78 column commit message created by git revert. I'm stuck. What do I do? Date: Sat, 6 Oct 2018 09:17:13 +0000 Message-ID: <20181006091713.GB4855@ACM> References: <20181003124943.GA16238@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1538817898 4671 195.159.176.226 (6 Oct 2018 09:24:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 09:24:58 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 06 11:24:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8ipS-00014u-1y for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2018 11:24:54 +0200 Original-Received: from localhost ([::1]:38449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8irY-00015C-A9 for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2018 05:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8irG-00010s-G6 for emacs-devel@gnu.org; Sat, 06 Oct 2018 05:26:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8ioK-0000gJ-Ei for emacs-devel@gnu.org; Sat, 06 Oct 2018 05:23:49 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:51467 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1g8ioK-0000fz-3C for emacs-devel@gnu.org; Sat, 06 Oct 2018 05:23:44 -0400 Original-Received: (qmail 74543 invoked by uid 3782); 6 Oct 2018 09:23:43 -0000 Original-Received: from acm.muc.de (p5B146974.dip0.t-ipconnect.de [91.20.105.116]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 06 Oct 2018 11:23:42 +0200 Original-Received: (qmail 4901 invoked by uid 1000); 6 Oct 2018 09:17:13 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230244 Archived-At: Hello, Noam. On Wed, Oct 03, 2018 at 19:41:17 -0400, Noam Postavsky wrote: > On Wed, 3 Oct 2018 at 08:56, Alan Mackenzie wrote: > > I'd like to use git commit --amend, but this can only change one of the > > two commit messages created by git revert. > > > > How can I resolve this mess? > For the record, you can change the messages of multiple previous > commits using rebase: > git rebase --interactive HEAD~2 > This will pop up your $EDITOR. Change the occurrences of "pick" into > "reword", then save and exit. You will then be able to edit each > commit message in turn (again, in $EDITOR). Thanks. I'll have a look at that sometime. I actually fixed the immediate problem with Stefan's suggestion, temporarily removing the git hook. -- Alan Mackenzie (Nuremberg, Germany).