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

Function add_cmdname

help.c:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void add_cmdname(struct cmdnames *cmds, const char *name, int len)
163{
164 struct cmdname *ent;
165 FLEX_ALLOC_MEM(ent, name, name, len);
166 ent->len = len;
167
168 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc);
169 cmds->names[cmds->cnt++] = ent;
170}
171
172void cmdnames_release(struct cmdnames *cmds)
173{

Callers 4

list_commands_in_dirFunction · 0.85
git_unknown_cmd_configFunction · 0.85
load_builtin_commandsFunction · 0.85
get_strategyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected