]> git.ipfire.org Git - thirdparty/git.git/commit - range-diff.c
range-diff: output `## Notes ##` header
authorDenton Liu <liu.denton@gmail.com>
Wed, 20 Nov 2019 21:18:43 +0000 (13:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Nov 2019 00:29:52 +0000 (09:29 +0900)
commit9f726e1b879f6cc191cf18e0b81dbea45eaee60d
tree6da033af4f7aafdc669585d6aef66f5a1a88adf3
parent3bdbdfb7a5a3f0077c3593cd53868cd38b569ead
range-diff: output `## Notes ##` header

When notes were included in the output of range-diff, they were just
mashed together with the rest of the commit message. As a result, users
wouldn't be able to clearly distinguish where the commit message ended
and where the notes started.

Output a `## Notes ##` header when notes are detected so that notes can
be compared more clearly.

Note that we handle case of `Notes (<ref>): -> ## Notes (<ref>) ##` with
this code as well. We can't test this in this patch, however, since
there is currently no way to pass along different notes refs to `git
log`. This will be fixed in a future patch.

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