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

Function is_git_command

builtin/help.c:457–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455static struct cmdnames main_cmds, other_cmds;
456
457static int is_git_command(const char *s)
458{
459 if (is_builtin(s))
460 return 1;
461
462 load_command_list("git-", &main_cmds, &other_cmds);
463 return is_in_cmdlist(&main_cmds, s) ||
464 is_in_cmdlist(&other_cmds, s);
465}
466
467static const char *cmd_to_page(const char *git_cmd)
468{

Callers 2

cmd_to_pageFunction · 0.85
check_git_cmdFunction · 0.85

Calls 3

is_builtinFunction · 0.85
load_command_listFunction · 0.85
is_in_cmdlistFunction · 0.85

Tested by

no test coverage detected