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 19:42:36 +0100 |
commit | 5078f344591ee3c454e64ff73e6563f0a3f14950 (patch) | |
tree | 9e6bbf35347208196ce5bd7cc1c9178a06a8464f /builtin/am.c | |
parent | match-trees: convert splice_tree to object_id (diff) | |
download | git-5078f344591ee3c454e64ff73e6563f0a3f14950.tar.xz git-5078f344591ee3c454e64ff73e6563f0a3f14950.zip |
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 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/am.c b/builtin/am.c index acfe9d3c8c..6e6abb05cd 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1641,8 +1641,8 @@ static void do_commit(const struct am_state *state) setenv("GIT_COMMITTER_DATE", state->ignore_date ? "" : state->author_date, 1); - if (commit_tree(state->msg, state->msg_len, tree.hash, parents, commit.hash, - author, state->sign_commit)) + if (commit_tree(state->msg, state->msg_len, &tree, parents, &commit, + author, state->sign_commit)) die(_("failed to write commit object")); reflog_msg = getenv("GIT_REFLOG_ACTION"); |