diff options
Diffstat (limited to 'notes-utils.h')
-rw-r--r-- | notes-utils.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/notes-utils.h b/notes-utils.h index 0661e99909..b4cb1bfb43 100644 --- a/notes-utils.h +++ b/notes-utils.h @@ -3,6 +3,20 @@ #include "notes.h" +/* + * Create new notes commit from the given notes tree + * + * Properties of the created commit: + * - tree: the result of converting t to a tree object with write_notes_tree(). + * - parents: the given parents OR (if NULL) the commit referenced by t->ref. + * - author/committer: the default determined by commmit_tree(). + * - commit message: msg + * + * The resulting commit SHA1 is stored in result_sha1. + */ +void create_notes_commit(struct notes_tree *t, struct commit_list *parents, + const struct strbuf *msg, unsigned char *result_sha1); + void commit_notes(struct notes_tree *t, const char *msg); struct notes_rewrite_cfg { |