A simple bash script that can be added to as a post-commit
hook to display a project's TODO
comments every now and then after you make a commit.
- 10% of all commits it will display all
TODO(your_username)
comments - 5% of all commits it will display all
TODO
comments
By being regularly reminded of technical current technical debt it makes it easier to prioritize cleaning things up and keep you technical debt ☢ to a minimum.
- This project uses
Ag
for searching for comments in the code base. Follow the instructions for installing Ag - Set your GitHub/GitLab username as the environment
GIT_USERNAME
by addingexport GIT_USERNAME=your_username
to your terminal.rc
file (e.g.~/.bashrc
or~/.zshrc
) - Setup git templates
git config --global init.templatedir '~/.git-templates'
- Create a hooks folder
mkdir -p ~/.git-templates/hooks
- Symlink
todo.sh
to your globalpost-commit
hookln -s /path/to/todo-hook-me/todo.sh ~/.git-templates/hooks/post-commit
- Work actively to keep the technical debt ☢ away