MCPcopy Index your code
hub / github.com/git/git / branch_get_push

Function branch_get_push

remote.c:1971–1983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969}
1970
1971const char *branch_get_push(struct branch *branch, struct strbuf *err)
1972{
1973 read_config(the_repository, 0);
1974 die_on_missing_branch(the_repository, branch);
1975
1976 if (!branch)
1977 return error_buf(err, _("HEAD does not point to a branch"));
1978
1979 if (!branch->push_tracking_ref)
1980 branch->push_tracking_ref = branch_get_push_1(
1981 the_repository, branch, err);
1982 return branch->push_tracking_ref;
1983}
1984
1985static int ignore_symref_update(const char *refname, struct strbuf *scratch)
1986{

Callers 4

populate_valueFunction · 0.85
stat_tracking_infoFunction · 0.85
resolve_compare_branchFunction · 0.85
format_tracking_infoFunction · 0.85

Calls 4

read_configFunction · 0.85
die_on_missing_branchFunction · 0.85
error_bufFunction · 0.85
branch_get_push_1Function · 0.85

Tested by

no test coverage detected