]>
Commit | Line | Data |
---|---|---|
a97a7468 JS |
1 | #ifndef NOTES_H |
2 | #define NOTES_H | |
3 | ||
27d57564 JH |
4 | /* Free (and de-initialize) the internal notes tree structure */ |
5 | void free_notes(void); | |
6 | ||
a7e7eff6 | 7 | /* Flags controlling how notes are formatted */ |
c56fcc89 JH |
8 | #define NOTES_SHOW_HEADER 1 |
9 | #define NOTES_INDENT 2 | |
10 | ||
a7e7eff6 JH |
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, | |
c56fcc89 | 20 | const char *output_encoding, int flags); |
a97a7468 JS |
21 | |
22 | #endif |