These are the steps to install this git commit-msg hook.
-
Install
rustup
with one of these options:- with your operating system's package manager
- instructions to install rust and cargo
-
Run
rustup update
. -
Clone this git repository with:
git clone https://github.com/sean-hut/amaranth-commit-msg-hook
-
In the cloned git repository run:
cargo build --release
. -
Copy the binary into the git hook directory of the repository.
Copy
amaranth-commit-msg-hook/target/release/amaranth_commit_msg_hook
into the.git/hooks/
. -
In the
.git/hooks/
directory rename the binary fromamaranth_commit_msg_hook
tocommit-msg
. -
Make
.git/hooks/commit-msg
executable with this command:chmod u=rwx .git/hooks/pre-commit
This project has no runtime dependencies.
This Git hook checks commit messages for their conformance with the Amaranth commit message format. It will output passed and fail checks. If you have failed checks refer to the Amaranth commit message format.