[git] IDEA-115318 Clicking "amend" shouldn't revert what user has typed
authorKirill Likhodedov <Kirill.Likhodedov@gmail.com>
Wed, 23 Oct 2013 15:39:34 +0000 (19:39 +0400)
committerKirill Likhodedov <Kirill.Likhodedov@gmail.com>
Wed, 23 Oct 2013 15:41:03 +0000 (19:41 +0400)
commitb9f77b822a83623efe5e05a07132d12f2da37e38
tree4e0f87a086a466de488a74dfa7a0d14c4c0ece2f
parent40568da0ecbb64a49ad9c8ea179044e4bd5ad85e
[git] IDEA-115318 Clicking "amend" shouldn't revert what user has typed

* Remember the initial commit message.
* On "amend" select: substitute commit message with the message of the
  previous commit, only if user hasn't modified the initial message.
* On "amend" deselect: substitute commit message with the initially
  saved one, only if user hasn't modified the amended message.
plugins/git4idea/src/git4idea/checkin/GitCheckinEnvironment.java