commit-graph: implement git-commit-graph write