commit-graph: use string-list API for input