| 376 | } |
| 377 | |
| 378 | void 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 | |
| 394 | void list_cmds_by_category(struct string_list *list, |
| 395 | const char *cat) |
no test coverage detected