Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/git/git
/ is_main_worktree
Function
is_main_worktree
worktree.c:298–301 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
296
}
297
298
int is_main_worktree(const struct worktree *wt)
299
{
300
return !wt->id;
301
}
302
303
const char *worktree_lock_reason(struct worktree *wt)
304
{
Callers
15
worktree_lock_reason
Function · 0.85
worktree_prune_reason
Function · 0.85
validate_worktree
Function · 0.85
update_worktree_location
Function · 0.85
strbuf_worktree_ref
Function · 0.85
repair_worktree_after_gitdir_move
Function · 0.85
has_worktrees
Function · 0.85
packed_fsck
Function · 0.85
reftable_be_fsck
Function · 0.85
files_fsck_refs_dir
Function · 0.85
files_fsck_root_ref
Function · 0.85
lock_worktree
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected