parse the output of git commands (wip)