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

Function git_config_string_dup

sequencer.c:3068–3076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3066}
3067
3068static int git_config_string_dup(char **dest,
3069 const char *var, const char *value)
3070{
3071 if (!value)
3072 return config_error_nonbool(var);
3073 free(*dest);
3074 *dest = xstrdup(value);
3075 return 0;
3076}
3077
3078static int populate_opts_cb(const char *key, const char *value,
3079 const struct config_context *ctx,

Callers 1

populate_opts_cbFunction · 0.85

Calls 2

config_error_nonboolFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected