-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better ergonomic around commit form #3245
Conversation
pmiossec
commented
Jul 8, 2016
- save amend checkbox state when closing form
- disable commit form minimize button when open from browse window (because that's absolutely not ergonomic)
I don't know, in my use-case I often do ordinary commit after amend. |
I can see remembering it till they click commit. Then reset it. |
Not sure of the exact case you describe here...
Indeed, the state is remember until we click on "commit" but lost if we close the commit form (for example to see a commit message, a diff or something else). When we come back to the commit form to finish our commit message, we have to remember (or see!) that the checkbox was not checked anymore. This fix just remember the state until we commit. |
Agree on remembering the state. Message is also restored, so let's make it consistent. |
bc907f7
to
00072d3
Compare
00072d3
to
f9764b3
Compare
I don't want the Amend check box to be persisted if I close the form! If by mistake I create a new commit instead of amending it then that is |
The flow is this. User checks amend This way it still remembers the state but you never accidently amend. |
@ghanique as far as I remember, you will get a message box asking if you want to amend. |
@ghanique As @vbjay and @matkoch told you, their is a popup that prevent you to do the mistake if you click too quickly. I highly believe that there is a lot more chance that someone that just click on the amend checkbox want his choice remembered instead of wanting to disappear...
Not a lot. You just have to look at the reflog. And I did a pull request for that 😆 #3242 |
f9764b3
to
36a59da
Compare
36a59da
to
4f68d3b
Compare
4f68d3b
to
f875ff0
Compare
c5c37db
to
65c9ade
Compare
When a commit gets committed the Amend state is not remembered (it is actually cleared). So it will be only restored when you close window not committing. |
65c9ade
to
94ab6ff
Compare
no problem. I will do it.
I thought about that but found out that it was a little overkill and a pitty that, what I found a (little) ergonomic improvment, be disabled by default and consequently never enabled by nearly all the users. But I will do it, especially if that permit to merge it ;) |
As I said - it should be enabled by default. |
Oh, ok! Make more sense ;-) I read twice your original sentence but understand the contrary. I understood: add an option "disable remembering amend state" with enable state by default ;-) I'm happy, so! |
because that's absolutely not ergonomic. In this special case, that's a lot better to close and reopen the commit form
that was the only state that remain to be saved and that is the last impediment into closing/opening commit form instead of minimize it
…g the Commit form
94ab6ff
to
e361b5a
Compare
Done! ;) I've put the setting in |
Thank you. I moved the setting to the Commit dialog settings page as it does not look like an advanced one. |