
git-team
Command line interface for creating git commit templates provisioned with one or more co-authors.
Installation
Build from Source
The latest version of git-team has been built against go version 1.12.
make
sudo make install
ansible-playbook git-team.yml --ask-become-pass
Usage
Setup some aliases
git team add noujz "Mr. Noujz <noujz@mr.se>"
To review your current aliases use:
git team list
To remove an alias use:
git team rm noujz
Provision a commit template
This alias (along with others) can then be used as an argument to the enable command and will be resolved while parsing the command line.
git team [enable] noujz
Apart from one or more aliases, you may provide a properly formatted co-author aswell.
git team [enable] noujz <alias1> ... <aliasN> "Mr. Green <green@mr.se>"
Commit some
Just use git commit. Please note that templates don't affect -m.
Back to being a loner
git team disable
Uninstall
sudo make purge
Similar projects
TODOs
- rename:
add -> assign (the word 'add' is confusing here; Note: breaking change)
- refactor: consolidate "persistence backends"
git config and git-team status file
- feat: make it possible to rm multiple aliases
- feat: when adding an existing alias, ask for override
- feat: always sort aliases
- feat: use current COMMIT TEMPLATE if one exists
- fix: disallow setting an alias more than once for the enable command (
aliases | uniq | further_processing)
- test: Add integration test target to
Makefile to work with the docker build (also integrate with CI)