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

Function repo_default_remote

remote.c:1812–1820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1810}
1811
1812const char *repo_default_remote(struct repository *repo)
1813{
1814 struct branch *branch;
1815
1816 read_config(repo, 0);
1817 branch = repo_branch_get(repo, "HEAD");
1818
1819 return remotes_remote_for_branch(repo->remote_state, branch, NULL);
1820}
1821
1822const char *repo_remote_from_url(struct repository *repo, const char *url)
1823{

Callers 2

get_default_remoteFunction · 0.85

Calls 3

read_configFunction · 0.85
repo_branch_getFunction · 0.85

Tested by

no test coverage detected