Pairing in git

When the guys at ThoughtWorks start working on a story they run

./pair Levent John

So the names of the pair working on the task is reflected in Git

#!/usr/bin/env ruby

def usage
  puts "./pair [name] [name]: pair two people (set the user in git)"
  exit
end

usage if ARGV.size != 2

pair = [ARGV[0], ARGV[1]]

puts "pairing #{pair.first} and #{pair.last}"
`git config user.name "#{pair.first} & #{pair.last}"`
`git config user.email #{pair.first}+#{pair.last}@wherever.com`

Simple but so useful