gitstats: Don't look before we leap in getting the commit diff
commita904391b7a0cf67cce5adc3c21b899be59c7be27
authorSverre Rabbelier <sverre@rabbelier.nl>
Sat, 12 Jul 2008 13:33:19 +0000 (12 15:33 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sat, 12 Jul 2008 14:04:12 +0000 (12 16:04 +0200)
tree1158b0c424cf2ab3b21673d0b2e0826abed5673b
parentb2b4bccc7f7c97a0fe20039b8ffd679272967d44
gitstats: Don't look before we leap in getting the commit diff

It's ok if that means that occasionally we hit a root
commit and have to retry with --root instead. Since most
commits -do- have a parent this gives a speed improvement
of almost 1.5x!
src/git_stats/commit.py