More efficient git parsing (2)

Replacement for PR #83.