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

Function prune_dups

builtin/worktree.c:201–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static void prune_dups(struct string_list *l)
202{
203 int i;
204
205 QSORT(l->items, l->nr, prune_cmp);
206 for (i = 1; i < l->nr; i++) {
207 if (!fspathcmp(l->items[i].string, l->items[i - 1].string))
208 prune_worktree(l->items[i].util, "duplicate entry");
209 }
210}
211
212static void prune_worktrees(void)
213{

Callers 1

prune_worktreesFunction · 0.85

Calls 1

prune_worktreeFunction · 0.85

Tested by

no test coverage detected