Skip to content

Commit ee38d82

Browse files
committed
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>
1 parent 9ca5df9 commit ee38d82

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

diff.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,6 @@ static void run_checkdiff(struct diff_filepair *p, struct diff_options *o)
25402540
void diff_setup(struct diff_options *options)
25412541
{
25422542
memset(options, 0, sizeof(*options));
2543-
memset(&diff_queued_diff, 0, sizeof(diff_queued_diff));
25442543

25452544
options->file = stdout;
25462545

0 commit comments

Comments
 (0)