Closed
Description
I was wondering if there's a generalized way to run hooks that are specific to my development environment. For example, I'd like a post-checkout hook that calls ctags
with a specific configuration, but many engineers on my team don't use ctags
.
One thought I had was to implement a hook that could be configured to look for unversioned hooks in a specified directory. I.e. maybe something like:
PostCheckout:
Local:
path: ".unversioned-git-hooks"
Then if <repo>/.unversioned-git-hooks
contained post-checkout
, etc. they would be run after regular Overcommit hooks. And /.unversioned-git-hooks
could be added to .gitignore
.
Metadata
Metadata
Assignees
Labels
No labels