git-team

command module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 15 Imported by: 0

README

Build Status

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
With an ansible playbook
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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
add

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL