Git Duo

Description

A git porcelain for duo programming. Changes git-config's user.name and user.email settings so you can commit as more than one author.

Features/problems:

  • Keep pairs per repository
  • Import pairs between repositories
  • Pairing made easy(-ier)
  • Guess the base email from the paired users' email addresses

Synopsis

$ git duo --email "board+%[email protected]"
$ git duo --add "bruce Bruce Wayne <[email protected]>"
$ git duo --add "alfred Alfred Pennyworth <[email protected]>"
$ git duo alfred bruce
Alfred Pennyworth + Bruce Wayne <[email protected]>
$ git duo --add "jim Jim Gordon <[email protected]>"
$ git duo alfred bruce jim
Alfred Pennyworth + Bruce Wayne + Jim Gordon <[email protected]>
$ git duo --add "Jim Gordon <[email protected]>"
$ git duo jim alfred
Alfred Pennyworth + Jim Gordin <[email protected]>
$ git duo alfred
Alfred Pennyworth <[email protected]>
$ git duo --list
Bruce Wayne <[email protected]>
Alfred Pennyworth <[email protected]>
Jim Gordon <[email protected]>
$ git duo --email "law+%[email protected]"
Alfred Pennyworth + Bruce Wayne <[email protected]>
$ cd ../new-project
$ git duo --import ../old-project
# this will import the authors and email from the `old-project` project
# into `new-project`
$ git solo
Teo Ljungberg <[email protected]>

Requirements

  • Ruby 1.9 and above
  • Rake

Install

  • Clone down this repository
  • Run rake install
  • Good to go

Developers

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, the gem itself and run the tests

Autotest

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request