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

Function uniq

help.c:189–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189static void uniq(struct cmdnames *cmds)
190{
191 int i, j;
192
193 if (!cmds->cnt)
194 return;
195
196 for (i = j = 1; i < cmds->cnt; i++) {
197 if (!strcmp(cmds->names[i]->name, cmds->names[j-1]->name))
198 free(cmds->names[i]);
199 else
200 cmds->names[j++] = cmds->names[i];
201 }
202
203 cmds->cnt = j;
204}
205
206void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
207{

Callers 2

load_command_listFunction · 0.85
help_unknown_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected