find_first_merges(): remove unnecessary code
No names are ever set for the object_array_entries in merges, so there is no need to pretend to copy them to the result array. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3826902d25
commit
5de0c0155c
@ -893,8 +893,7 @@ static int find_first_merges(struct object_array *result, const char *path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!contains_another)
|
if (!contains_another)
|
||||||
add_object_array(merges.objects[i].item,
|
add_object_array(merges.objects[i].item, NULL, result);
|
||||||
merges.objects[i].name, result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(merges.objects);
|
free(merges.objects);
|
||||||
|
Loading…
Reference in New Issue
Block a user