git-codereview: make change fail with multiple pending changes
When using 'git change' to amend the current change, it will fail
if there are multiple pending changes. The previous behavior (amending
the latest) wasn't always what the user intended.
$ git change
git-codereview: cannot amend change: multiple changes pending:
fc60fd5 test: dummy change
6440cdc git-codereview: make change fail with multiple pending changes
Unlike mail and submit, change doesn't support explicitly telling
which commit to work on. Either 'git commit --amend' (for updating
the topmost change) or a combination of 'git commit' and 'git rebase'
must be used.
Reviewed-by: Andrew Gerrand <firstname.lastname@example.org>
Run-TryBot: Andrew Gerrand <email@example.com>
TryBot-Result: Gobot Gobot <firstname.lastname@example.org>
5 files changed