MCPcopy Create free account
hub / github.com/git/git / branch_checked_out

Function branch_checked_out

branch.c:459–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459const char *branch_checked_out(const char *refname)
460{
461 prepare_checked_out_branches();
462 return strmap_get(&current_checked_out_branches, refname);
463}
464
465/*
466 * Check if a branch 'name' can be created as a new branch; die otherwise.

Callers 6

add_decorations_to_listFunction · 0.85
validate_new_branchnameFunction · 0.85
update_local_refFunction · 0.85
check_not_current_branchFunction · 0.85
delete_branchesFunction · 0.85
cmd_branchFunction · 0.85

Calls 2

strmap_getFunction · 0.85

Tested by

no test coverage detected