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

Function repo_config_set_worktree_gently

config.c:2900–2912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2898}
2899
2900int repo_config_set_worktree_gently(struct repository *r,
2901 const char *key, const char *value)
2902{
2903 /* Only use worktree-specific config if it is already enabled. */
2904 if (r->repository_format_worktree_config) {
2905 char *file = repo_git_path(r, "config.worktree");
2906 int ret = repo_config_set_multivar_in_file_gently(
2907 r, file, key, value, NULL, NULL, 0);
2908 free(file);
2909 return ret;
2910 }
2911 return repo_config_set_multivar_gently(r, key, value, NULL, 0);
2912}
2913
2914void repo_config_set(struct repository *r, const char *key, const char *value)
2915{

Callers 2

set_sparse_index_configFunction · 0.85
set_configFunction · 0.85

Tested by

no test coverage detected