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

Function http_config

http-backend.c:249–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static void http_config(void)
250{
251 int i, value = 0;
252 struct strbuf var = STRBUF_INIT;
253
254 repo_config_get_bool(the_repository, "http.getanyfile", &getanyfile);
255 repo_config_get_ulong(the_repository, "http.maxrequestbuffer", &max_request_buffer);
256
257 for (i = 0; i < ARRAY_SIZE(rpc_service); i++) {
258 struct rpc_service *svc = &rpc_service[i];
259 strbuf_addf(&var, "http.%s", svc->config_name);
260 if (!repo_config_get_bool(the_repository, var.buf, &value))
261 svc->enabled = value;
262 strbuf_reset(&var);
263 }
264
265 strbuf_release(&var);
266}
267
268static struct rpc_service *select_service(struct strbuf *hdr, const char *name)
269{

Callers 1

cmd_mainFunction · 0.85

Calls 4

repo_config_get_boolFunction · 0.85
repo_config_get_ulongFunction · 0.85
strbuf_addfFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected