Code

Add flags to get_commit_notes() to control the format of the note string
authorJohan Herland <johan@herland.net>
Fri, 9 Oct 2009 10:22:04 +0000 (12:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2009 02:00:24 +0000 (19:00 -0700)
commitc56fcc89b951f3e8c9240ea02676b2eef5417da6
tree4d9bc0bb973427941a54101a8c03d8aef9e1dc4d
parent3ed24b6aaf35d6ca1eef2643cd0b9128eb152cda
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