aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorKeith Cascio <keith@cs.ucla.edu>2009-02-13 09:33:34 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-13 18:19:37 -0800
commit4b15b4ab5f9b19caff6d4a910ecc3e1d4f0e13f0 (patch)
tree4c8846f59ed24cbda44f2d514a461a8271439dae /diff.c
parent901d615c5d74bea20e0c8d7fcdf7585616306b79 (diff)
downloadgit-4b15b4ab5f9b19caff6d4a910ecc3e1d4f0e13f0.tar.gz
git-4b15b4ab5f9b19caff6d4a910ecc3e1d4f0e13f0.tar.xz
Remove redundant bit clears from diff_setup()
All bits already clear after memset(0). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/diff.c b/diff.c
index be3859e0a..006aa017e 100644
--- 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) {