]> git.ipfire.org Git - thirdparty/git.git/blob - notes.h
Notes API: get_commit_notes() -> format_note() + remove the commit restriction
[thirdparty/git.git] / notes.h
1 #ifndef NOTES_H
2 #define NOTES_H
3
4 /* Free (and de-initialize) the internal notes tree structure */
5 void free_notes(void);
6
7 /* Flags controlling how notes are formatted */
8 #define NOTES_SHOW_HEADER 1
9 #define NOTES_INDENT 2
10
11 /*
12 * Fill the given strbuf with the notes associated with the given object.
13 *
14 * If the internal notes structure is not initialized, it will be auto-
15 * initialized to the default value (see documentation for init_notes() above).
16 *
17 * 'flags' is a bitwise combination of the above formatting flags.
18 */
19 void format_note(const unsigned char *object_sha1, struct strbuf *sb,
20 const char *output_encoding, int flags);
21
22 #endif