Repository navigation
Git Panel: Option to skip commit hooks by default #66325
ao-jhelmich
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What are you proposing?
An option to make "Skip hooks" the default when committing from the Git panel.
My project has a lot of Git hooks, and I don't want them to run on every commit. Right now I have to open the dropdown next to the Commit button and select Skip hooks each time.
Why does this matter?
For projects with many or slow hooks, skipping them is the normal workflow rather than the exception. Having to re-select the option on every commit adds friction and is easy to forget, which means hooks end up running when they shouldn't. and this sucks so much!
Possible approach
A few options, from most to least explicit:
A setting in the
gitnamespace, for example:A more general version could be something like
default_commit_flags, so other flags (e.g.--signoff) could be defaulted the same way.Remember the last selection in the Commit dropdown, per project, so the chosen option stays selected for the next commit.
Either would solve this; option 1 is more predictable, option 2 needs no configuration.
All reactions