commit-email

Crates.iocommit-email
lib.rscommit-email
version0.2.1
sourcesrc
created_at2021-04-27 23:27:53.071253
updated_at2024-03-06 11:49:54.797049
descriptionA tool that reminds you to commit with the correct email address
homepage
repositoryhttps://github.com/mkqavi/commit-email
max_upload_size
id390383
size44,018
Marvin König (mkqavi)

documentation

README

commit-email

A tool that reminds you to commit with the correct email address

Installation

Arch Linux

commit-email is available on the AUR. Afterwards add the shell script to your shell configuration.

Other

Use cargo to install commit-email.

cargo install commit-email

Afterwards add the shell script to your shell configuration.

Shell Script

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 $@
}

Configure

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).

Commit count: 176

cargo fmt