Re: [PATCH 1/2] do not mangle short options which take arguments
- From
Paolo Bonzini <bonzini@gnu.org>
- Date
- Oct 2, 2009, 07:46 UTC
- Message-ID
- <4AC5AFC3.7000706@gnu.org>
- In-Reply-To
- <20091002073628.GA9444@localhost>
On 10/02/2009 09:36 AM, Clemens Buchacher wrote:
> Well, an error message is a lot safer than executing something you did not > intend.
If this is just for double --amend typos I don't see the need. What you intended is just one "git rebase -i HEAD^^" away.
Notice that in Shawn's original example the guy actually passed -a too, so he would not even have the problem of overwriting the index due to -a.
If you have bouncy fingers, you can just make an alias
ammend-fix = git reset --soft HEAD^ && git gui citool
Paolo