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

Function prune_worktree

builtin/worktree.c:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static void prune_worktree(const char *id, const char *reason)
172{
173 if (show_only || verbose)
174 fprintf_ln(stderr, _("Removing %s/%s: %s"), "worktrees", id, reason);
175 if (!show_only)
176 delete_git_dir(id);
177}
178
179static int prune_cmp(const void *a, const void *b)
180{

Callers 2

prune_dupsFunction · 0.85
prune_worktreesFunction · 0.85

Calls 2

fprintf_lnFunction · 0.85
delete_git_dirFunction · 0.85

Tested by

no test coverage detected