More efficient git parsing