Add flags to get_commit_notes() to control the format of the note string
authorJohan Herland <johan@herland.net>
Sat, 12 Sep 2009 16:08:42 +0000 (18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 12 Sep 2009 18:32:25 +0000 (11:32 -0700)
commit2d3167fe86d924e6abe2c56013cc02a839029364
tree10c3b5ecbee0c97c1e18226ae77acca862d32f0d
parent42f66c0f38748aabe8a92e9abc72f2c99057c8c6
Add flags to get_commit_notes() to control the format of the note string

This patch adds the following flags to get_commit_notes() for adjusting the
format of the produced note string:
- NOTES_SHOW_HEADER: Print "Notes:" line before the notes contents
- NOTES_INDENT: Indent notes contents by 4 spaces

Suggested-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c
notes.h
pretty.c