submodule: convert merge_submodule to use struct object_id
This is a caller of lookup_commit_reference, which we will convert later. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
912c13d58f
commit
71f35d5cbc
@ -994,11 +994,11 @@ static int merge_file_1(struct merge_options *o,
|
||||
return ret;
|
||||
result->clean = (merge_status == 0);
|
||||
} else if (S_ISGITLINK(a->mode)) {
|
||||
result->clean = merge_submodule(result->oid.hash,
|
||||
result->clean = merge_submodule(&result->oid,
|
||||
one->path,
|
||||
one->oid.hash,
|
||||
a->oid.hash,
|
||||
b->oid.hash,
|
||||
&one->oid,
|
||||
&a->oid,
|
||||
&b->oid,
|
||||
!o->call_depth);
|
||||
} else if (S_ISLNK(a->mode)) {
|
||||
oidcpy(&result->oid, &a->oid);
|
||||
|
||||
Reference in New Issue
Block a user