| 6368 | } |
| 6369 | |
| 6370 | int todo_list_write_to_file(struct repository *r, struct todo_list *todo_list, |
| 6371 | const char *file, const char *shortrevisions, |
| 6372 | const char *shortonto, int num, unsigned flags) |
| 6373 | { |
| 6374 | int res; |
| 6375 | struct strbuf buf = STRBUF_INIT; |
| 6376 | |
| 6377 | todo_list_to_strbuf(r, todo_list, &buf, num, flags); |
| 6378 | if (flags & TODO_LIST_APPEND_TODO_HELP) |
| 6379 | append_todo_help(count_commands(todo_list), |
| 6380 | shortrevisions, shortonto, &buf); |
| 6381 | |
| 6382 | res = write_message(buf.buf, buf.len, file, 0); |
| 6383 | strbuf_release(&buf); |
| 6384 | |
| 6385 | return res; |
| 6386 | } |
| 6387 | |
| 6388 | /* skip picking commits whose parents are unchanged */ |
| 6389 | static int skip_unnecessary_picks(struct repository *r, |
no test coverage detected