MCPcopy 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
298int is_main_worktree(const struct worktree *wt)
299{
300 return !wt->id;
301}
302
303const char *worktree_lock_reason(struct worktree *wt)
304{

Callers 15

worktree_lock_reasonFunction · 0.85
worktree_prune_reasonFunction · 0.85
validate_worktreeFunction · 0.85
update_worktree_locationFunction · 0.85
strbuf_worktree_refFunction · 0.85
has_worktreesFunction · 0.85
packed_fsckFunction · 0.85
reftable_be_fsckFunction · 0.85
files_fsck_refs_dirFunction · 0.85
files_fsck_root_refFunction · 0.85
lock_worktreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected