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

Function config_set_in_gitmodules_file_gently

submodule-config.c:983–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983int config_set_in_gitmodules_file_gently(const char *key, const char *value)
984{
985 int ret;
986
987 ret = repo_config_set_in_file_gently(the_repository, GITMODULES_FILE, key, NULL, value);
988 if (ret < 0)
989 /* Maybe the user already did that, don't error out here */
990 warning(_("Could not update .gitmodules entry %s"), key);
991
992 return ret;
993}
994
995struct fetch_config {
996 int *max_children;

Callers 6

module_set_urlFunction · 0.85
module_set_branchFunction · 0.85

Calls 2

warningFunction · 0.85

Tested by 2