Crates.io | commit-email |
lib.rs | commit-email |
version | 0.2.1 |
source | src |
created_at | 2021-04-27 23:27:53.071253 |
updated_at | 2024-03-06 11:49:54.797049 |
description | A tool that reminds you to commit with the correct email address |
homepage | |
repository | https://github.com/mkqavi/commit-email |
max_upload_size | |
id | 390383 |
size | 44,018 |
A tool that reminds you to commit with the correct email address
commit-email is available on the AUR. Afterwards add the shell script to your shell configuration.
Use cargo to install commit-email.
cargo install commit-email
Afterwards add the shell script to your shell configuration.
This script runs commit-email every time you run git commit
.
function git() {
if [ "$1" = "commit" ]
then
# Path to commit-email binary (Arch)
/usr/bin/commit-email
# Path to commit-email binary (Cargo)
# $HOME/.cargo/bin/commit-email
fi;
command git $@
}
If you want do adjust the config file for the commit-email
tool, you will find the configs in the following path ~/.config/commit-email/commit-email.toml
(linux).
# List of repo urls where the tool will not set a commit email
ignore = []
# Emails the tool will use
emails = [
'email@example.com',
'email2@example.com'
]
The tool will also use your global git email, if set (e.g. in your global .gitconfig
).