twosigma / twosigma/git-meta

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

Open
#699 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
233
Forks
54
PR merge metrics
No merged PRs in 30d

Description

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 ?)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.