diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2018-01-28 01:13:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-30 10:42:36 -0800 |
commit | 5078f344591ee3c454e64ff73e6563f0a3f14950 (patch) | |
tree | 9e6bbf35347208196ce5bd7cc1c9178a06a8464f /commit.h | |
parent | 3b34934dcaa4e643a3691ba1f10db054adf60ffb (diff) | |
download | git-5078f344591ee3c454e64ff73e6563f0a3f14950.tar.gz |
commit: convert commit_tree* to object_id
Convert the definitions and declarations of commit_tree and
commit_tree_extended to use struct object_id and adjust all usages of
these functions.
Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -262,14 +262,15 @@ extern void append_merge_tag_headers(struct commit_list *parents, struct commit_extra_header ***tail); extern int commit_tree(const char *msg, size_t msg_len, - const unsigned char *tree, - struct commit_list *parents, unsigned char *ret, + const struct object_id *tree, + struct commit_list *parents, struct object_id *ret, const char *author, const char *sign_commit); extern int commit_tree_extended(const char *msg, size_t msg_len, - const unsigned char *tree, - struct commit_list *parents, unsigned char *ret, - const char *author, const char *sign_commit, + const struct object_id *tree, + struct commit_list *parents, + struct object_id *ret, const char *author, + const char *sign_commit, struct commit_extra_header *); extern struct commit_extra_header *read_commit_extra_headers(struct commit *, const char **); |