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

Function get_builtin

git.c:687–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685};
686
687static struct cmd_struct *get_builtin(const char *s)
688{
689 for (size_t i = 0; i < ARRAY_SIZE(commands); i++) {
690 struct cmd_struct *p = commands + i;
691 if (!strcmp(s, p->cmd))
692 return p;
693 }
694 return NULL;
695}
696
697int is_builtin(const char *s)
698{

Callers 4

is_builtinFunction · 0.85
handle_builtinFunction · 0.85
is_deprecated_commandFunction · 0.85
run_argvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected