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
- 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