Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
void 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_clear
Function · 0.85
add_rebase_files
Function · 0.85
other_head_refs
Function · 0.85
repair_worktrees
Function · 0.85
repair_worktrees_after_gitdir_move
Function · 0.85
add_other_reflogs_to_pending
Function · 0.85
add_index_objects_to_pending
Function · 0.85
has_worktrees
Function · 0.85
prepare_checked_out_branches
Function · 0.85
die_if_checked_out
Function · 0.85
get_store
Function · 0.85
location_options_init
Function · 0.85
Calls
1
free_worktree
Function · 0.85
Tested by
1
get_store
Function · 0.68