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

Function remote_clear

remote.c:169–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static void remote_clear(struct remote *remote)
170{
171 free((char *)remote->name);
172 free((char *)remote->foreign_vcs);
173
174 strvec_clear(&remote->url);
175 strvec_clear(&remote->pushurl);
176
177 refspec_clear(&remote->push);
178 refspec_clear(&remote->fetch);
179
180 free((char *)remote->receivepack);
181 free((char *)remote->uploadpack);
182 FREE_AND_NULL(remote->http_proxy);
183 FREE_AND_NULL(remote->http_proxy_authmethod);
184 string_list_clear(&remote->server_options, 0);
185 string_list_clear(&remote->negotiation_restrict, 0);
186 string_list_clear(&remote->negotiation_include, 0);
187}
188
189static void add_merge(struct branch *branch, const char *name)
190{

Callers 1

remote_state_clearFunction · 0.85

Calls 3

strvec_clearFunction · 0.85
refspec_clearFunction · 0.85
string_list_clearFunction · 0.85

Tested by

no test coverage detected