[PATCH] fetch.c: Remove useless lookup_object_type() call in process()
authorSergey Vlasov <vsu@altlinux.ru>
Wed, 21 Sep 2005 16:33:54 +0000 (20:33 +0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Sep 2005 19:32:31 +0000 (12:32 -0700)
commite8d2a6d483a6f556a509fc8debdb9391a5fa2630
tree05b9b35c08b304cc00d2e4486749533899373b77
parent0493a3fd5204a36bc961a8611770ddb9ec1ed8ed
[PATCH] fetch.c: Remove useless lookup_object_type() call in process()

In all places where process() is called except the one in pull() (which
is executed only once) the pointer to the object is already available,
so pass it as the argument to process() instead of sha1 and avoid an
unneeded call to lookup_object_type().

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch.c