Skip to content

A clone of commit-colors written in Rust

License

Notifications You must be signed in to change notification settings

mcol/co-colo-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

co-colo-rs

A clone of commit-colors written in Rust.

animated gif demonstrating co-colo-rs

Adding co-colo-rs to a specific repository

Create a file named post-commit inside the .git/hooks of your repository with the following content and ensure that it's executable:

#!/bin/bash
commit-colors $(git rev-parse HEAD)

Adding co-colo-rs to all you repositories

Put the post-commit file generated above to a directory of your choice, then run this command:

git config --global core.hooksPath /path/to/my/centralized/hooks

You can follow these instructions if you have an older version of git or want to know more details.