commit: add repository argument to read_graft_file