Hooks scopes #79
Unanswered
bdvorianov
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hello ! The way ran hooks are selected is not based on where you fire the In your case, the global hooks (defined in the It is done, regardless of where you |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Imagine we have a structure like:
In such case, pre-commit will be fired only if
git commit
was fired from thepackage
directory, but it seems kinda natural that it may be fired whencommit
was fired from therootFolder
and we have staged changes inpackage
. I see global hook withonlyOn
as a solution, but it's not as clean as if it would work as above. Is there a way to do this? 🤔Beta Was this translation helpful? Give feedback.
All reactions