Skip to content

Commit

Permalink
Remove redundant bit clears from diff_setup()
Browse files Browse the repository at this point in the history
All bits already clear after memset(0).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Keith Cascio authored and Junio C Hamano committed Feb 14, 2009
1 parent 901d615 commit 4b15b4a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4b15b4a

Please sign in to comment.