1
0
mirror of https://github.com/git/git.git synced 2024-09-25 14:33:31 +02:00

Remove redundant bit clears from diff_setup()

All bits already clear after memset(0).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Keith Cascio 2009-02-13 09:33:34 -08:00 committed by Junio C Hamano
parent 901d615c5d
commit 4b15b4ab5f

3
diff.c
View File

@ -2326,15 +2326,12 @@ void diff_setup(struct diff_options *options)
options->break_opt = -1;
options->rename_limit = -1;
options->dirstat_percent = 3;
DIFF_OPT_CLR(options, DIRSTAT_CUMULATIVE);
options->context = 3;
options->change = diff_change;
options->add_remove = diff_addremove;
if (diff_use_color_default > 0)
DIFF_OPT_SET(options, COLOR_DIFF);
else
DIFF_OPT_CLR(options, COLOR_DIFF);
options->detect_rename = diff_detect_rename_default;
if (!diff_mnemonic_prefix) {