Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Git and Pairing Statistics

At stand-up this past Monday after the whirlwind of the holidays, our team anchor encouraged us to pair with somebody we hadn’t paired with much recently. While this was good advice I really didn’t have a clear idea in my mind of how often I’d been pairing with specific developers on the team.

On our project we use Bryan Helmkamp’s pair script to change our git author name to a pair of developers joined with “and.” Since both developer names are included on a commit in a consistent way, I was able to get a vague idea of with whom I’d been paired over the past couple of weeks with a quick git log | grep Pignata | less but I couldn’t really see any patterns from this output.

To better keep track I threw together a quick script to quickly parse out these results and show me at a glance what my pairing habits have been over the past 30 days. Now I can check every couple of weeks to see if I’ve inadvertently become part of a sticky pair or if there’s a developer I haven’t been pairing with often enough:

 jp@populuxe:~/Projects/lorem(master)$ ./pair-stats Habitasse Platea
 Pairing stats for Habitasse Platea since 2009-12-06

 Developer              Days   Commits  %
 ---------------        ----   -------  ---
 Tincidunt Nec          8      55       33%
 Congue vel Mauris      5      40       20%
 Sed Facilisis          4      21       16%
 Etiam Blandit          3      16       12%
 Solo                   1      2        1%
 ...

You can find the script on GitHub.

What tricks does your team have to ensure proper circulation of developer pairs?

Comments
  1. Josh Susser says:

    Why aren’t you using the pivotal git-pair script in our git_scripts project?

  2. John Pignata says:

    I’m not sure we aren’t? [git-pair](http://github.com/pivotal/git_scripts/blob/master/git-pair) is the script I referred to above.

  3. Josh Susser says:

    Ah, well that script was based on Bryan’s script but we improved it to work with a .pairs file so you don’t need to keep editing the script when the people using it change. Readers can find our git scripts at < http://github.com/pivotal/git_scripts>

  4. Alex Chaffee says:

    What do you guys think about < http://github.com/chrisk/git-pair> ?

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *