gc: automatically write commit-graph files