format-patch: pass notes configuration to range-diff
commit5b583e6a09dc2095160a4489502577a5a20b400e
authorDenton Liu <liu.denton@gmail.com>
Wed, 20 Nov 2019 21:18:47 +0000 (20 13:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Nov 2019 00:29:52 +0000 (21 09:29 +0900)
tree43cca1da42f258d31e0ebbd842087171df5acc38
parentbd361918868284c06a438b832dbc95e11266fd5b
format-patch: pass notes configuration to range-diff

Since format-patch accepts `--[no-]notes`, one would expect the
range-diff generated to also respect the setting. Unfortunately, the
range-diff we currently generate only uses the default option (which
always outputs default notes, even when notes are not being used
elsewhere).

Pass the notes configuration to range-diff so that it can honor it.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t3206-range-diff.sh