log-tree: show_log: make commentary block delimiting reusable
commit3fcc7a23a0b76bdac07b605a6afd6084ac543821
authorEric Sunshine <sunshine@sunshineco.com>
Sun, 22 Jul 2018 09:57:08 +0000 (22 05:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2018 19:50:06 +0000 (23 12:50 -0700)
tree6108e8afe1997f503b22d68d84535e850be0c742
parent3b026417eaa1f32f53b85d1b131194ae1cbbf068
log-tree: show_log: make commentary block delimiting reusable

In patches generated by git-format-patch, the area below the "---" line
following the commit message and before the actual 'diff' can be used
for commentary which the patch author wants to convey to readers of the
patch itself but not include in the commit message proper.

By default, the commentary area is empty, however, the --notes option
causes it to be populated with notes associated with the commit. In the
future, other options may be added which also insert content into the
commentary section.

To accommodate this, factor out the logic which delimits commentary
blocks from the commit message so that it can be re-used for upcoming
optional inserted content.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c