Merge branch 'ac/deglobal-fmt-merge-log-config'
Code clean-up. * ac/deglobal-fmt-merge-log-config: builtin/fmt-merge-msg: stop depending on 'the_repository' environment: remove the global variable 'merge_log_config'
This commit is contained in:
@@ -1374,6 +1374,7 @@ int cmd_merge(int argc,
|
||||
struct commit_list *remoteheads = NULL, *p;
|
||||
void *branch_to_free;
|
||||
int orig_argc = argc;
|
||||
int merge_log_config = -1;
|
||||
|
||||
show_usage_with_options_if_asked(argc, argv,
|
||||
builtin_merge_usage, builtin_merge_options);
|
||||
@@ -1392,7 +1393,7 @@ int cmd_merge(int argc,
|
||||
skip_prefix(branch, "refs/heads/", &branch);
|
||||
|
||||
init_diff_ui_defaults();
|
||||
repo_config(the_repository, git_merge_config, NULL);
|
||||
repo_config(the_repository, git_merge_config, &merge_log_config);
|
||||
|
||||
if (!branch || is_null_oid(&head_oid))
|
||||
head_commit = NULL;
|
||||
|
||||
Reference in New Issue
Block a user