Re: Fwd: Possible bug report: `git commit -ammend`

2013-11-15 Thread Matthieu Moy
rhys evans rhys.ev...@ft.com writes: I ran `git commit -ammend` on a repo where 1 out of 3 files changed were staged for commit. I would've expected an error to be thrown due to the double typo but instead it committed all 3 files with the message 'mend'. So it looks like it interpreted it

Re: Fwd: Possible bug report: `git commit -ammend`

2013-11-15 Thread Duy Nguyen
On Fri, Nov 15, 2013 at 10:54 PM, Matthieu Moy matthieu@grenoble-inp.fr wrote: rhys evans rhys.ev...@ft.com writes: I ran `git commit -ammend` on a repo where 1 out of 3 files changed were staged for commit. I would've expected an error to be thrown due to the double typo but instead it

Re: Fwd: Possible bug report: `git commit -ammend`

2013-11-15 Thread Jeff King
On Sat, Nov 16, 2013 at 10:28:36AM +0700, Duy Nguyen wrote: Yes. This is a rather widespread convention (e.g. rm -fr == rm -r -f). Git does a special-case for -amend to avoid confusion: $ git commit -amend error: did you mean `--amend` (with two dashes ?) But it did not