commit-graph: parse commit from chosen graph