]> git.ipfire.org Git - thirdparty/git.git/commit - range-diff.c
range-diff: avoid segfault with -I
authorRené Scharfe <l.s.r@web.de>
Sat, 4 Sep 2021 07:50:58 +0000 (09:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Sep 2021 20:03:13 +0000 (13:03 -0700)
commit709b3f32d333df1e29dbb073b4e9e834f130a989
treec06e851e11818e8641e8a2bb96a5adff8bfc7828
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
range-diff: avoid segfault with -I

output() reuses the same struct diff_options for multiple calls of
diff_flush().  Set the option no_free to instruct it to keep the
ignore regexes between calls and release them explicitly at the end.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c