Fix DIFF_QUEUE_CLEAR refactoring
It introduced a macro to reduce repeated assignments to three fields, but an unrelated and incorrect change snuck in by mistake, which broke commands like "git diff-files -p --submodule". Noticed by Sven Verdoolaege. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Aug 2, 2010 at 08:29 UTC
ee38d823f74bd8872c1e793f98a5b5523ee04646
1 file changed
-1
diff.c
-1
@@ -2540,7 +2540,6 @@ static void run_checkdiff(struct diff_filepair *p, struct diff_options *o)
2540
void diff_setup(struct diff_options *options)
2541
{
2542
memset(options, 0, sizeof(*options));
2543
- memset(&diff_queued_diff, 0, sizeof(diff_queued_diff));
2543
2544
options->file = stdout;
2545