Re: [feature request] Warn about or prevent --amend commits that don't change anything

2016-07-13 Thread Bergi
Junio C Hamano schrieb: Bergi <a.d.be...@web.de> writes: when nothing is staged in the index then `git commit` warns about this fact with either "nothing to commit, working directory clean" or "no changes added to commit". However, `git commit --amend --no-edit`

[feature request] Warn about or prevent --amend commits that don't change anything

2016-07-13 Thread Bergi
) to check the tree in the same way as `git commit` does, as the intention of `--no-edit` is even more clear and running the command is more obviously a mistake/lapse. Kind regards, Bergi -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to