MCPcopy Index your code
hub / github.com/git/git / list_builtins

Function list_builtins

git.c:702–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702static void list_builtins(struct string_list *out,
703 unsigned int include_option,
704 unsigned int exclude_option)
705{
706 if (include_option && exclude_option)
707 BUG("'include_option' and 'exclude_option' are mutually exclusive");
708 for (size_t i = 0; i < ARRAY_SIZE(commands); i++) {
709 if (include_option && !(commands[i].option & include_option))
710 continue;
711 if (exclude_option && (commands[i].option & exclude_option))
712 continue;
713 string_list_append(out, commands[i].cmd);
714 }
715}
716
717void load_builtin_commands(const char *prefix, struct cmdnames *cmds)
718{

Callers 2

list_cmdsFunction · 0.85
handle_optionsFunction · 0.85

Calls 1

string_list_appendFunction · 0.70

Tested by

no test coverage detected