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

Function count_commands

sequencer.c:2897–2906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2895}
2896
2897static int count_commands(struct todo_list *todo_list)
2898{
2899 int count = 0, i;
2900
2901 for (i = 0; i < todo_list->nr; i++)
2902 if (todo_list->items[i].command != TODO_COMMENT)
2903 count++;
2904
2905 return count;
2906}
2907
2908static int get_item_line_offset(struct todo_list *todo_list, int index)
2909{

Callers 3

read_populate_todoFunction · 0.85
todo_list_write_to_fileFunction · 0.85
complete_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected