Code

Remove redundant bit clears from diff_setup()
authorKeith Cascio <keith@cs.ucla.edu>
Fri, 13 Feb 2009 17:33:34 +0000 (09:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Feb 2009 02:19:37 +0000 (18:19 -0800)
All bits already clear after memset(0).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c

diff --git a/diff.c b/diff.c
index be3859e0a7b48ddd79f993866513d204cd83575f..006aa017e28dd217d07bb2c48d932e026175f98d 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -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) {