git-meta icon indicating copy to clipboard operation
git-meta copied to clipboard

`git-meta commit -amend` (typo in --amend) causes some confusing behaviour

Open jhedwardyang opened this issue 6 years ago • 0 comments

Having a typo (missing a "-" during git meta commit --amend) causes an interesting (but correct) behaviour.

Repro: git meta commit -amend

Actual: -amend resolves to -a -m end and creates a new commit with the message "end".

Expected: Possibly rejecting like git commit does?

$ git commit -amend
error: did you mean `--amend` (with two dashes ?)

jhedwardyang avatar Mar 06 '19 20:03 jhedwardyang