Re: [PATCH 2/2] rebase -i: interrupt rebase when "commit --amend" failed
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Jul 30, 2011, 11:52 UTC
- Message-ID
- <CAGdFq_in9huck5kGo5N00jF53B2USsHy_CXb914jZrMZ4HpTUg@mail.gmail.com>
- In-Reply-To
- <1311565113-5022-3-git-send-email-andrew.kw.w@gmail.com>
Heya,
On Mon, Jul 25, 2011 at 05:38, Andrew Wong <andrew.kw.w@gmail.com> wrote:
Show 6 quoted lines
> "commit --amend" could fail if the user empties the commit message. > Although this is not a real error, it seems to make more sense to > interrupt the rebasing, rather than ignoring the error and continue on > rebasing. This gives users a way to gracefully interrupt a "reword" if > they decided they actually want to do an "edit", or even "rebase > --abort".
Yesplease. I've had this where I marked an entire patch series for reword only to discover on the first patch that I made a mistake, so I ended up having to type ":wq" some twenty times. It would have been much nicer if I could just have done ":cq" once and then 'git rebase --abort'.
-- Cheers, Sverre Rabbelier