Skip to content

Commit 48be4c6

Browse files
bk2204gitster
authored andcommitted
sequencer: convert do_recursive_merge to struct object_id
This conversion is required to convert parse_tree_indirect. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 944cffb commit 48be4c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sequencer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ void append_conflicts_hint(struct strbuf *msgbuf)
426426

427427
static int do_recursive_merge(struct commit *base, struct commit *next,
428428
const char *base_label, const char *next_label,
429-
unsigned char *head, struct strbuf *msgbuf,
429+
struct object_id *head, struct strbuf *msgbuf,
430430
struct replay_opts *opts)
431431
{
432432
struct merge_options o;
@@ -446,7 +446,7 @@ static int do_recursive_merge(struct commit *base, struct commit *next,
446446
if (is_rebase_i(opts))
447447
o.buffer_output = 2;
448448

449-
head_tree = parse_tree_indirect(head);
449+
head_tree = parse_tree_indirect(head->hash);
450450
next_tree = next ? next->tree : empty_tree();
451451
base_tree = base ? base->tree : empty_tree();
452452

@@ -1081,7 +1081,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
10811081
res = -1;
10821082
else if (!opts->strategy || !strcmp(opts->strategy, "recursive") || command == TODO_REVERT) {
10831083
res = do_recursive_merge(base, next, base_label, next_label,
1084-
head.hash, &msgbuf, opts);
1084+
&head, &msgbuf, opts);
10851085
if (res < 0)
10861086
return res;
10871087
res |= write_message(msgbuf.buf, msgbuf.len,

0 commit comments

Comments
 (0)