966
value = normalize_value(argv[0], argv[1], type, &default_kvi);
967
968
if ((flags & CONFIG_FLAGS_MULTI_REPLACE) || value_pattern) {
969
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
970
- argv[0], value, value_pattern,
971
- comment, flags);
969
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
970
+ argv[0], value, value_pattern,
971
+ comment, flags);
972
} else {
973
ret = repo_config_set_in_file_gently(the_repository, location_opts.source.file,
974
argv[0], comment, value);
1010
check_write(&location_opts.source);
1011
1012
if ((flags & CONFIG_FLAGS_MULTI_REPLACE) || value_pattern)
1013
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1014
- argv[0], NULL, value_pattern,
1015
- NULL, flags);
1013
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1014
+ argv[0], NULL, value_pattern,
1015
+ NULL, flags);
1016
else
1017
ret = repo_config_set_in_file_gently(the_repository, location_opts.source.file, argv[0],
1018
NULL, NULL);
1305
check_write(&location_opts.source);
1306
check_argc(argc, 2, 3);
1307
value = normalize_value(argv[0], argv[1], display_opts.type, &default_kvi);
1308
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1309
- argv[0], value, argv[2],
1310
- comment, flags);
1308
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1309
+ argv[0], value, argv[2],
1310
+ comment, flags);
1311
}
1312
else if (actions == ACTION_ADD) {
1313
check_write(&location_opts.source);
1314
check_argc(argc, 2, 2);
1315
value = normalize_value(argv[0], argv[1], display_opts.type, &default_kvi);
1316
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1317
- argv[0], value,
1318
- CONFIG_REGEX_NONE,
1319
- comment, flags);
1316
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1317
+ argv[0], value,
1318
+ CONFIG_REGEX_NONE,
1319
+ comment, flags);
1320
}
1321
else if (actions == ACTION_REPLACE_ALL) {
1322
check_write(&location_opts.source);
1323
check_argc(argc, 2, 3);
1324
value = normalize_value(argv[0], argv[1], display_opts.type, &default_kvi);
1325
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1326
- argv[0], value, argv[2],
1327
- comment, flags | CONFIG_FLAGS_MULTI_REPLACE);
1325
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1326
+ argv[0], value, argv[2],
1327
+ comment, flags | CONFIG_FLAGS_MULTI_REPLACE);
1328
}
1329
else if (actions == ACTION_GET) {
1330
check_argc(argc, 1, 2);
1350
check_write(&location_opts.source);
1351
check_argc(argc, 1, 2);
1352
if (argc == 2)
1353
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1354
- argv[0], NULL, argv[1],
1355
- NULL, flags);
1353
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1354
+ argv[0], NULL, argv[1],
1355
+ NULL, flags);
1356
else
1357
ret = repo_config_set_in_file_gently(the_repository, location_opts.source.file,
1358
argv[0], NULL, NULL);
1360
else if (actions == ACTION_UNSET_ALL) {
1361
check_write(&location_opts.source);
1362
check_argc(argc, 1, 2);
1363
- ret = git_config_set_multivar_in_file_gently(location_opts.source.file,
1364
- argv[0], NULL, argv[1],
1365
- NULL, flags | CONFIG_FLAGS_MULTI_REPLACE);
1363
+ ret = repo_config_set_multivar_in_file_gently(the_repository, location_opts.source.file,
1364
+ argv[0], NULL, argv[1],
1365
+ NULL, flags | CONFIG_FLAGS_MULTI_REPLACE);
1366
}
1367
else if (actions == ACTION_RENAME_SECTION) {
1368
check_write(&location_opts.source);