Disable "Commit All" in commit panel

已回答

I often have changes which I do not want to commit.
And often I am not concentrated and push the button even if nothing is staged.

I tried to deactivate this, so I only can push if I have staged changes - but I cannot find anything helpful…

Is there a way to deactivate this? if not please make a feature request, thank you :) 

1
Hi,

Thanks for your feedback! Im trying to understand your use case, in the commit window, you can pick which files you can commit, it does not need to be all. Could you clarify further what do you mean? For example share some screenshots and additional details (like steps you take to reproduce the workflow)...

Thank you!
0

If there is nothing staged, the button says “commit all”
 

Sadly it happens often that I press it and everything changed will get commited … I do not want that.

I just want to commit what I explicitly have staged.
So the button should be disabled if nothing is staged at all, like in stash panel if nothing is selected:
 

0

Talk about Pros and Cons of button “Commit All”

- Pros: help save a little time stagging and committing all tracking files (save the step of clicking “stagging all”). It is not like people have to make a commit every minute so I don't think it actually convenient.

- Cons: accidentally commit all “unwanted to commit” files. When I make a minor change to a file, I deploy (local) and test, then back to Rider and commit the minor change. The button “Commit All” is highlighted make I think that I had staged the file and so I click “Commit All” while thought it was “Commit” button. Normally I don't make that mistake but once a week, it still happens.

- So: it would be better to disable “Commit All” button, or have a dedicated button “Commit All” located in another position, or have a setting to customize that. Each button should have only 1 behavior, it is very wrong to have a button with 2 different behavior. They even have the same color!

0
Hi,

Can you try disabling the option in the commit window?
In the top-right menu (three dots) of the commit panel, turn off “Commit All When Nothing Is Staged.”
If that doesn’t help, please collect logs via Help | Collect Logs and Diagnostic Data, and upload them to our secure server https://uploads.jetbrains.com/
2

Thank you. That's worked.

 

I thought the setting should be here (near the button) instead.

0

That is exactly what I was looking for, than you very much! 
I just had looked in preferences and where Kang had pointed out …  

 

0

Thank you for making this thread, I was having the same issue! A button that changes status on context change is dangerous. I'm glad I can disable it.

0

请先登录再写评论。