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

Function list_all_main_cmds

help.c:362–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void list_all_main_cmds(struct string_list *list)
363{
364 struct cmdnames main_cmds, other_cmds;
365 int i;
366
367 memset(&main_cmds, 0, sizeof(main_cmds));
368 memset(&other_cmds, 0, sizeof(other_cmds));
369 load_command_list("git-", &main_cmds, &other_cmds);
370
371 for (i = 0; i < main_cmds.cnt; i++)
372 string_list_append(list, main_cmds.names[i]->name);
373
374 cmdnames_release(&main_cmds);
375 cmdnames_release(&other_cmds);
376}
377
378void list_all_other_cmds(struct string_list *list)
379{

Callers 1

list_cmdsFunction · 0.85

Calls 3

load_command_listFunction · 0.85
cmdnames_releaseFunction · 0.85
string_list_appendFunction · 0.70

Tested by

no test coverage detected