You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to skip a hook (or individual command) if the commit message matches a certain pattern.
Value
I like using cog verify (cf. cocogitto/cocogitto) as part of a commit-msg hook. I also like creating fixup commits (in IDEA, if that matters) which end up vanishing after rebasing with autosquash.
Sadly, the two do not mix well: cocogitto forbids the ephemeral commit messages of such commits, as they don't conform to conventional commits.
What I would like is to configure lefthook to ignore fixup commits:
Either feature fixes my use case, but I do think that this proposal has merit in its own right for lefthook. Users may use different tools to enforce conventional commits!
⚡ Summary
Allow to skip a hook (or individual command) if the commit message matches a certain pattern.
Value
I like using
cog verify
(cf. cocogitto/cocogitto) as part of acommit-msg
hook. I also like creating fixup commits (in IDEA, if that matters) which end up vanishing after rebasing withautosquash
.Sadly, the two do not mix well: cocogitto forbids the ephemeral commit messages of such commits, as they don't conform to conventional commits.
What I would like is to configure lefthook to ignore fixup commits:
Behavior and configuration changes
The change seems additive to me.
The text was updated successfully, but these errors were encountered: