I often use the "Amend Last Commit" feature to add small changes to my previous commit.
However, if the previous commit has already been pushed, then the amended commit cannot be pushed anymore.
Is it possible to disable the "Amend Last Commit" button if the previous commit has already been pushed?