Skip to content

Commit 4b15b4a

Browse files
Keith Casciogitster
authored andcommitted
Remove redundant bit clears from diff_setup()
All bits already clear after memset(0). Signed-off-by: Junio C Hamano <[email protected]>
1 parent 901d615 commit 4b15b4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

diff.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2326,15 +2326,12 @@ void diff_setup(struct diff_options *options)
23262326
options->break_opt = -1;
23272327
options->rename_limit = -1;
23282328
options->dirstat_percent = 3;
2329-
DIFF_OPT_CLR(options, DIRSTAT_CUMULATIVE);
23302329
options->context = 3;
23312330

23322331
options->change = diff_change;
23332332
options->add_remove = diff_addremove;
23342333
if (diff_use_color_default > 0)
23352334
DIFF_OPT_SET(options, COLOR_DIFF);
2336-
else
2337-
DIFF_OPT_CLR(options, COLOR_DIFF);
23382335
options->detect_rename = diff_detect_rename_default;
23392336

23402337
if (!diff_mnemonic_prefix) {

0 commit comments

Comments
 (0)