diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:53:55 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:53:55 -0800 |
| commit | 885d492f69a80ae3e91c1310a63caf0aeb567f2a (patch) | |
| tree | 3240d00b6c56d2ea55daad2d18103e7b4d3cf89f /notes.h | |
| parent | 905bf7742cf5f4a6dea2e75ba2dbd89d5dfaa793 (diff) | |
| parent | a099469bbcf273e76d81573229971956b4ef0700 (diff) | |
| download | git-885d492f69a80ae3e91c1310a63caf0aeb567f2a.tar.gz | |
Merge branch 'jh/notes' (early part)
* 'jh/notes' (early part):
Add selftests verifying concatenation of multiple notes for the same commit
Refactor notes code to concatenate multiple notes annotating the same object
Add selftests verifying that we can parse notes trees with various fanouts
Teach the notes lookup code to parse notes trees with various fanout schemes
Teach notes code to free its internal data structures on request
Add '%N'-format for pretty-printing commit notes
Add flags to get_commit_notes() to control the format of the note string
t3302-notes-index-expensive: Speed up create_repo()
fast-import: Add support for importing commit notes
Teach "-m <msg>" and "-F <file>" to "git notes edit"
Add an expensive test for git-notes
Speed up git notes lookup
Add a script to edit/inspect notes
Introduce commit notes
Conflicts:
.gitignore
Documentation/pretty-formats.txt
pretty.c
Diffstat (limited to 'notes.h')
| -rw-r--r-- | notes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/notes.h b/notes.h new file mode 100644 index 0000000000..a1421e351a --- /dev/null +++ b/notes.h @@ -0,0 +1,13 @@ +#ifndef NOTES_H +#define NOTES_H + +/* Free (and de-initialize) the internal notes tree structure */ +void free_notes(void); + +#define NOTES_SHOW_HEADER 1 +#define NOTES_INDENT 2 + +void get_commit_notes(const struct commit *commit, struct strbuf *sb, + const char *output_encoding, int flags); + +#endif |
