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

Function list_all_other_cmds

help.c:378–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void list_all_other_cmds(struct string_list *list)
379{
380 struct cmdnames main_cmds, other_cmds;
381 int i;
382
383 memset(&main_cmds, 0, sizeof(main_cmds));
384 memset(&other_cmds, 0, sizeof(other_cmds));
385 load_command_list("git-", &main_cmds, &other_cmds);
386
387 for (i = 0; i < other_cmds.cnt; i++)
388 string_list_append(list, other_cmds.names[i]->name);
389
390 cmdnames_release(&main_cmds);
391 cmdnames_release(&other_cmds);
392}
393
394void list_cmds_by_category(struct string_list *list,
395 const char *cat)

Callers 2

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