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

Function move_config_setting

worktree.c:1020–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020static int move_config_setting(const char *key, const char *value,
1021 const char *from_file, const char *to_file)
1022{
1023 if (repo_config_set_in_file_gently(the_repository, to_file, key, NULL, value))
1024 return error(_("unable to set %s in '%s'"), key, to_file);
1025 if (repo_config_set_in_file_gently(the_repository, from_file, key, NULL, NULL))
1026 return error(_("unable to unset %s in '%s'"), key, from_file);
1027 return 0;
1028}
1029
1030int init_worktree_config(struct repository *r)
1031{

Callers 1

init_worktree_configFunction · 0.85

Calls 2

errorFunction · 0.85

Tested by

no test coverage detected