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

Function git_config_push_split_parameter

config.c:450–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450static void git_config_push_split_parameter(const char *key, const char *value)
451{
452 struct strbuf env = STRBUF_INIT;
453 const char *old = getenv(CONFIG_DATA_ENVIRONMENT);
454 if (old && *old) {
455 strbuf_addstr(&env, old);
456 strbuf_addch(&env, ' ');
457 }
458 sq_quote_buf(&env, key);
459 strbuf_addch(&env, '=');
460 if (value)
461 sq_quote_buf(&env, value);
462 setenv(CONFIG_DATA_ENVIRONMENT, env.buf, 1);
463 strbuf_release(&env);
464}
465
466void git_config_push_parameter(const char *text)
467{

Callers 2

git_config_push_envFunction · 0.85

Calls 4

strbuf_addstrFunction · 0.85
strbuf_addchFunction · 0.85
sq_quote_bufFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected