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

Function free_worktrees

worktree.c:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void free_worktrees(struct worktree **worktrees)
31{
32 int i = 0;
33 for (i = 0; worktrees[i]; i++)
34 free_worktree(worktrees[i]);
35 free (worktrees);
36}
37
38/**
39 * Update head_oid, head_ref and is_detached of the given worktree

Callers 15

ref_array_clearFunction · 0.85
add_rebase_filesFunction · 0.85
other_head_refsFunction · 0.85
repair_worktreesFunction · 0.85
has_worktreesFunction · 0.85
die_if_checked_outFunction · 0.85
get_storeFunction · 0.85
location_options_initFunction · 0.85

Calls 1

free_worktreeFunction · 0.85

Tested by 1

get_storeFunction · 0.68