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

Function remotes_pushremote_for_branch

remote.c:691–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691static const char *
692remotes_pushremote_for_branch(struct remote_state *remote_state,
693 struct branch *branch, int *explicit)
694{
695 if (branch && branch->pushremote_name) {
696 if (explicit)
697 *explicit = 1;
698 return branch->pushremote_name;
699 }
700 if (remote_state->pushremote_name) {
701 if (explicit)
702 *explicit = 1;
703 return remote_state->pushremote_name;
704 }
705 return remotes_remote_for_branch(remote_state, branch, explicit);
706}
707
708const char *pushremote_for_branch(struct branch *branch, int *explicit)
709{

Callers 3

pushremote_for_branchFunction · 0.85
remote_ref_for_branchFunction · 0.85
branch_get_push_1Function · 0.85

Calls 1

Tested by

no test coverage detected