git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: maximilian attems <max@stro.at>
To: Brian Gernhardt <brian@gernhardtsoftware.com>
Cc: git@vger.kernel.org
Subject: Re: commit --amend neglecting return value
Date: Mon, 22 Mar 2010 19:39:56 +0100	[thread overview]
Message-ID: <20100322183956.GC21299@stro.at> (raw)
In-Reply-To: <E139EF92-B047-4928-A390-D47224CAA3DB@gernhardtsoftware.com>

On Mon, 22 Mar 2010, Brian Gernhardt wrote:

> 
> On Mar 22, 2010, at 1:16 AM, Brian Gernhardt wrote:
> 
> > If you want to abort committing while editing the message, delete the entire message (in Vim: "0dG:wq^M") and git will reply "Aborting commit due to empty commit message."
> 
> Oops.  Obviously I meant "ggdG:wq^M".
> 
> Also, a quick search of :help and testing reveals that ":cq" causes Vim to exit with non-zero status which will cause git to abort the commit.

thanks for the pointer this is indeed very helpful. :)

kept hiting that bug in stressy situations, good to know a way out.

      reply	other threads:[~2010-03-23  0:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22  4:36 commit --amend neglecting return value maximilian attems
2010-03-22  5:16 ` Brian Gernhardt
2010-03-22  5:20   ` Brian Gernhardt
2010-03-22 18:39     ` maximilian attems [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100322183956.GC21299@stro.at \
    --to=max@stro.at \
    --cc=brian@gernhardtsoftware.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).