I created a .git/hooks/commmit-msg
hook that is triggered correctly on git commit
but on top of that, as other git actions such as
- git pull
- git merge
- …
are also triggering the commit-msg
hook.
Is there a way to identify inside the commit-msg
file what type of git action triggered it and isolate certain logic to only apply to git commit
specifically?