3462
3463
if (opts->no_commit)
3464
res |= git_config_set_in_file_gently(opts_file,
3465
- "options.no-commit", "true");
3465
+ "options.no-commit", NULL, "true");
3466
if (opts->edit >= 0)
3467
- res |= git_config_set_in_file_gently(opts_file, "options.edit",
3467
+ res |= git_config_set_in_file_gently(opts_file, "options.edit", NULL,
3468
opts->edit ? "true" : "false");
3469
if (opts->allow_empty)
3470
res |= git_config_set_in_file_gently(opts_file,
3471
- "options.allow-empty", "true");
3471
+ "options.allow-empty", NULL, "true");
3472
if (opts->allow_empty_message)
3473
res |= git_config_set_in_file_gently(opts_file,
3474
- "options.allow-empty-message", "true");
3474
+ "options.allow-empty-message", NULL, "true");
3475
if (opts->keep_redundant_commits)
3476
res |= git_config_set_in_file_gently(opts_file,
3477
- "options.keep-redundant-commits", "true");
3477
+ "options.keep-redundant-commits", NULL, "true");
3478
if (opts->signoff)
3479
res |= git_config_set_in_file_gently(opts_file,
3480
- "options.signoff", "true");
3480
+ "options.signoff", NULL, "true");
3481
if (opts->record_origin)
3482
res |= git_config_set_in_file_gently(opts_file,
3483
- "options.record-origin", "true");
3483
+ "options.record-origin", NULL, "true");
3484
if (opts->allow_ff)
3485
res |= git_config_set_in_file_gently(opts_file,
3486
- "options.allow-ff", "true");
3486
+ "options.allow-ff", NULL, "true");
3487
if (opts->mainline) {
3488
struct strbuf buf = STRBUF_INIT;
3489
strbuf_addf(&buf, "%d", opts->mainline);
3490
res |= git_config_set_in_file_gently(opts_file,
3491
- "options.mainline", buf.buf);
3491
+ "options.mainline", NULL, buf.buf);
3492
strbuf_release(&buf);
3493
}
3494
if (opts->strategy)
3495
res |= git_config_set_in_file_gently(opts_file,
3496
- "options.strategy", opts->strategy);
3496
+ "options.strategy", NULL, opts->strategy);
3497
if (opts->gpg_sign)
3498
res |= git_config_set_in_file_gently(opts_file,
3499
- "options.gpg-sign", opts->gpg_sign);
3499
+ "options.gpg-sign", NULL, opts->gpg_sign);
3500
for (size_t i = 0; i < opts->xopts.nr; i++)
3501
res |= git_config_set_multivar_in_file_gently(opts_file,
3502
"options.strategy-option",
3503
- opts->xopts.v[i], "^$", 0);
3503
+ opts->xopts.v[i], "^$", NULL, 0);
3504
if (opts->allow_rerere_auto)
3505
res |= git_config_set_in_file_gently(opts_file,
3506
- "options.allow-rerere-auto",
3506
+ "options.allow-rerere-auto", NULL,
3507
opts->allow_rerere_auto == RERERE_AUTOUPDATE ?
3508
"true" : "false");
3509
3510
if (opts->explicit_cleanup)
3511
res |= git_config_set_in_file_gently(opts_file,
3512
- "options.default-msg-cleanup",
3512
+ "options.default-msg-cleanup", NULL,
3513
describe_cleanup_mode(opts->default_msg_cleanup));
3514
return res;
3515
}