object: add repository argument to object_as_type
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
1ec5bfd24e
commit
1268dfac1e
2
object.c
2
object.c
@ -158,7 +158,7 @@ void *create_object(struct repository *r, const unsigned char *sha1, void *o)
|
||||
return obj;
|
||||
}
|
||||
|
||||
void *object_as_type(struct object *obj, enum object_type type, int quiet)
|
||||
void *object_as_type_the_repository(struct object *obj, enum object_type type, int quiet)
|
||||
{
|
||||
if (obj->type == type)
|
||||
return obj;
|
||||
|
||||
Reference in New Issue
Block a user