Community
Participate
Working Groups
Created attachment 269136 [details] Screenshot I suggest "Close" instead of "OK".
David, maybe something you could coach on our next Eclipse Hackathon?
The real problem here is that this dialog exists at all. The commit commands and buttons in the staging view should simply not be enabled when there are no staged changes. The user should not have the option to perform the action at all when it cannot be performed. Also, this is a simple statement "Committing is not possible; there are no staged changes." To which "OK" is a perfectly fine answer and a perfectly fine button label. (It's also the only button in that dialog.) I'm all for changing button labels to verbs where there might be confusion otherwise, but here I see no need to do anything. Except enabling/disabling the commit action and buttons properly.
Please don't forget the "amend" commit use case, where just changing the commit message schould be possible (no other changes). I use this a lot.
(In reply to Thomas Wolf from comment #2) > The real problem here is that this dialog exists at all. I agree, but I suggest to handle this by another bug. Improving the label, is already an improvement (see below) and easy to archive. > To which "OK" is a perfectly fine answer and a perfectly fine button label. > (It's also the only button in that dialog.) We discussed this here in the current Hamburg Eclipse Hackathon and we think "Close" is a better description compared to "Ok".
Gerrit change https://git.eclipse.org/r/101335 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=6e2aa3ac99281cee6afe13ff821370b2daef691c
Dialog label changed; button enablement unchanged.