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

Function is_in_cmdlist

help.c:530–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530int is_in_cmdlist(struct cmdnames *c, const char *s)
531{
532 int i;
533 for (i = 0; i < c->cnt; i++)
534 if (!strcmp(s, c->names[i]->name))
535 return 1;
536 return 0;
537}
538
539struct help_unknown_cmd_config {
540 int autocorrect;

Callers 2

is_git_commandFunction · 0.85
get_strategyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected