Skip to content

Simple interface for adding your pair to a commit via git commit --author

Notifications You must be signed in to change notification settings

ryanbriones/git-pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-pair

Description

I wanted a way for git to show me when a commit was made from a pair during pair programming. As usual, git provides a mechanism for the concept using the --author option on git commit. Inspired by [Bryan Helpkamp's git pairing script] 1 I wanted git-pair to have a list of authors that was loaded from outside the script. Git, being amazingly flexible, allowed me to store information about authors in the git config and access the information uniformly. And so it is.

Install

Using GitHub's gem repo

sudo gem install ryanbriones-git-pair --source=http://gems.github.com

From source

git clone git://github.com/ryanbriones/git-pair.git
cd git-pair
rake
sudo gem install --local pkg/git-pair-X.X.X.gem

Usage

  • Add an author: git-pair add [--global] abbr 'Person <emailaddress>'
    • example: git-pair add --global js 'John Smith <jsmith@example.com>' # adds pair to ~/.gitconfig
    • example: git-pair add js 'John Smith <jsmith@example.com>' # WARNING adds pair to current git repo
  • Show available authors: git-pair show
  • Commit with a pair: git-pair commit [abbr] [git_options]

Authors

About

Simple interface for adding your pair to a commit via git commit --author

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages