Merge branch 'jk/color-and-pager'
* jk/color-and-pager: want_color: automatically fallback to color.ui diff: don't load color config in plumbing config: refactor get_colorbool function color: delay auto-color decision until point of use git_config_colorbool: refactor stdout_is_tty handling diff: refactor COLOR_DIFF from a flag into an int setup_pager: set GIT_PAGER_IN_USE t7006: use test_config helpers test-lib: add helper functions for config t7006: modernize calls to unset Conflicts: builtin/commit.c parse-options.c
This commit is contained in:
@ -390,8 +390,6 @@ static void finish(const unsigned char *new_head, const char *msg)
|
||||
opts.output_format |=
|
||||
DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
|
||||
opts.detect_rename = DIFF_DETECT_RENAME;
|
||||
if (diff_use_color_default > 0)
|
||||
DIFF_OPT_SET(&opts, COLOR_DIFF);
|
||||
if (diff_setup_done(&opts) < 0)
|
||||
die(_("diff_setup_done failed"));
|
||||
diff_tree_sha1(head, new_head, "", &opts);
|
||||
@ -1033,10 +1031,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
|
||||
|
||||
git_config(git_merge_config, NULL);
|
||||
|
||||
/* for color.ui */
|
||||
if (diff_use_color_default == -1)
|
||||
diff_use_color_default = git_use_color_default;
|
||||
|
||||
if (branch_mergeoptions)
|
||||
parse_branch_merge_options(branch_mergeoptions);
|
||||
argc = parse_options(argc, argv, prefix, builtin_merge_options,
|
||||
|
||||
Reference in New Issue
Block a user