Add tests for checking correct handling of $GIT_NOTES_REF and core.notesRef
[alt-git.git] / notes.h
blobd745ed12da5a412c78d7e97a65b66210930ae976
1 #ifndef NOTES_H
2 #define NOTES_H
4 /* Free (and de-initialize) the internal notes tree structure */
5 void free_notes(void);
7 /* Flags controlling how notes are formatted */
8 #define NOTES_SHOW_HEADER 1
9 #define NOTES_INDENT 2
12 * Fill the given strbuf with the notes associated with the given object.
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).
17 * 'flags' is a bitwise combination of the above formatting flags.
19 void format_note(const unsigned char *object_sha1, struct strbuf *sb,
20 const char *output_encoding, int flags);
22 #endif