| 360 | } |
| 361 | |
| 362 | void 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 | |
| 378 | void list_all_other_cmds(struct string_list *list) |
| 379 | { |
no test coverage detected