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

Function remote_for_branch

remote.c:682–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682const char *remote_for_branch(struct branch *branch, int *explicit)
683{
684 read_config(the_repository, 0);
685 die_on_missing_branch(the_repository, branch);
686
687 return remotes_remote_for_branch(the_repository->remote_state, branch,
688 explicit);
689}
690
691static const char *
692remotes_pushremote_for_branch(struct remote_state *remote_state,

Callers 3

fill_remote_ref_detailsFunction · 0.85
get_upstream_branchFunction · 0.85

Calls 3

read_configFunction · 0.85
die_on_missing_branchFunction · 0.85

Tested by

no test coverage detected