Developer Builds Git Hook to Auto-Format Revert Messages as Conventional Commits
A developer has released conventional-revert-hook, a lightweight POSIX shell tool that automatically reformats Git's default revert commit messages to follow the Conventional Commits specification. When Git generates a message like 'Revert "feat(email): add send tool"', the hook transforms it into the cleaner 'revert(email): add send tool' format. The tool requires no runtime dependencies such as Node.js or Python, relying solely on Git and a POSIX shell. It can be installed globally across all repositories on a machine or scoped to a single project, and it supports three output styles: scope, plain, and nested. The installers are designed to be conservative, avoiding overwriting existing hooks, making it safe to adopt without disrupting current developer tooling setups.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in