Parsing git output to new commit model instead of using the output string