MCPcopy Create free account
hub / github.com/git/git / todo_list_write_to_file

Function todo_list_write_to_file

sequencer.c:6370–6386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6368}
6369
6370int 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 */
6389static int skip_unnecessary_picks(struct repository *r,

Callers 4

edit_todo_listFunction · 0.85
skip_unnecessary_picksFunction · 0.85
complete_actionFunction · 0.85
edit_todo_fileFunction · 0.85

Calls 5

todo_list_to_strbufFunction · 0.85
append_todo_helpFunction · 0.85
count_commandsFunction · 0.85
write_messageFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected