Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/git/git
/ get_worktrees
Function
get_worktrees
worktree.c:217–220 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
215
}
216
217
struct worktree **get_worktrees(void)
218
{
219
return get_worktrees_internal(0);
220
}
221
222
struct worktree **get_worktrees_without_reading_head(void)
223
{
Callers
15
lazy_init_worktree_map
Function · 0.85
add_rebase_files
Function · 0.85
other_head_refs
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
update
Function · 0.85
cmd_reflog_expire
Function · 0.85
Calls
1
get_worktrees_internal
Function · 0.85
Tested by
1
get_store
Function · 0.68