aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-05 14:26:17 -0800
committerJunio C Hamano <gitster@pobox.com>2019-02-05 14:26:17 -0800
commit5d2710bd3c706c3375991972b630f9419551f24e (patch)
tree8f50b388a223e1f63c8624fc9d4dfbc23f0b069d /diff.c
parent5ad3550f026d7ea1b96e699fdf072b642e8a4b8b (diff)
parentdac03b5518a053e52ed7ee20925970728d3ae4c3 (diff)
downloadgit-5d2710bd3c706c3375991972b630f9419551f24e.tar.gz
Merge branch 'jk/diff-cc-stat-fixes'
"git diff --color-moved --cc --stat -p" did not work well due to funny interaction between a bug in color-moved and the rest, which has been fixed. * jk/diff-cc-stat-fixes: combine-diff: treat --dirstat like --stat combine-diff: treat --summary like --stat combine-diff: treat --shortstat like --stat combine-diff: factor out stat-format mask diff: clear emitted_symbols flag after use t4006: resurrect commented-out tests
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index e8c3e8081f..5306c48652 100644
--- a/diff.c
+++ b/diff.c
@@ -5962,8 +5962,10 @@ static void diff_flush_patch_all_file_pairs(struct diff_options *o)
for (i = 0; i < esm.nr; i++)
free((void *)esm.buf[i].line);
+ esm.nr = 0;
+
+ o->emitted_symbols = NULL;
}
- esm.nr = 0;
}
void diff_flush(struct diff_options *options)