3650
int res = 0;
3651
3652
if (opts->no_commit)
3653
- res |= git_config_set_in_file_gently(opts_file,
3653
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3654
"options.no-commit", NULL, "true");
3655
if (opts->edit >= 0)
3656
- res |= git_config_set_in_file_gently(opts_file, "options.edit", NULL,
3656
+ res |= repo_config_set_in_file_gently(the_repository, opts_file, "options.edit", NULL,
3657
opts->edit ? "true" : "false");
3658
if (opts->allow_empty)
3659
- res |= git_config_set_in_file_gently(opts_file,
3659
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3660
"options.allow-empty", NULL, "true");
3661
if (opts->allow_empty_message)
3662
- res |= git_config_set_in_file_gently(opts_file,
3662
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3663
"options.allow-empty-message", NULL, "true");
3664
if (opts->drop_redundant_commits)
3665
- res |= git_config_set_in_file_gently(opts_file,
3665
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3666
"options.drop-redundant-commits", NULL, "true");
3667
if (opts->keep_redundant_commits)
3668
- res |= git_config_set_in_file_gently(opts_file,
3668
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3669
"options.keep-redundant-commits", NULL, "true");
3670
if (opts->signoff)
3671
- res |= git_config_set_in_file_gently(opts_file,
3671
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3672
"options.signoff", NULL, "true");
3673
if (opts->record_origin)
3674
- res |= git_config_set_in_file_gently(opts_file,
3674
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3675
"options.record-origin", NULL, "true");
3676
if (opts->allow_ff)
3677
- res |= git_config_set_in_file_gently(opts_file,
3677
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3678
"options.allow-ff", NULL, "true");
3679
if (opts->mainline) {
3680
struct strbuf buf = STRBUF_INIT;
3681
strbuf_addf(&buf, "%d", opts->mainline);
3682
- res |= git_config_set_in_file_gently(opts_file,
3682
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3683
"options.mainline", NULL, buf.buf);
3684
strbuf_release(&buf);
3685
}
3686
if (opts->strategy)
3687
- res |= git_config_set_in_file_gently(opts_file,
3687
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3688
"options.strategy", NULL, opts->strategy);
3689
if (opts->gpg_sign)
3690
- res |= git_config_set_in_file_gently(opts_file,
3690
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3691
"options.gpg-sign", NULL, opts->gpg_sign);
3692
for (size_t i = 0; i < opts->xopts.nr; i++)
3693
res |= git_config_set_multivar_in_file_gently(opts_file,
3694
"options.strategy-option",
3695
opts->xopts.v[i], "^$", NULL, 0);
3696
if (opts->allow_rerere_auto)
3697
- res |= git_config_set_in_file_gently(opts_file,
3697
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3698
"options.allow-rerere-auto", NULL,
3699
opts->allow_rerere_auto == RERERE_AUTOUPDATE ?
3700
"true" : "false");
3701
3702
if (opts->explicit_cleanup)
3703
- res |= git_config_set_in_file_gently(opts_file,
3703
+ res |= repo_config_set_in_file_gently(the_repository, opts_file,
3704
"options.default-msg-cleanup", NULL,
3705
describe_cleanup_mode(opts->default_msg_cleanup));
3706
return res;