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+%names@gotham.travel"
$ git duo --add "bruce Bruce Wayne <bruce@gotham.travel>"
$ git duo --add "alfred Alfred Pennyworth <alfred@gotham.travel>"
$ git duo alfred bruce
Alfred Pennyworth + Bruce Wayne <board+alfred+bruce@gotham.travel>
$ git duo --add "jim Jim Gordon <jim@gotham.travel>"
$ git duo alfred bruce jim
Alfred Pennyworth + Bruce Wayne + Jim Gordon <dev+alfred+bruce+jim@gotham.travel>
$ git duo --add "Jim Gordon <jim@gotham.travel>"
$ git duo jim alfred
Alfred Pennyworth + Jim Gordin <dev+alfred+jim@gotham.travel>
$ git duo alfred
Alfred Pennyworth <alfred@gotham.travel>
$ git duo --list
Bruce Wayne <bruce@gotham.travel>
Alfred Pennyworth <alfred@gotham.travel>
Jim Gordon <jim@gotham.travel>
$ git duo --email "law+%names@gotham.travel"
Alfred Pennyworth + Bruce Wayne <law+alfred+bruce@gotham.travel>
$ 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 <teo.ljungberg@gmail.com>
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
- Install autotest (as a part of ZenTest)
- Install autotest-suffix (since I prefer
foo_test.rb
totest_foo.rb
)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request