]> git.ipfire.org Git - thirdparty/git.git/commit - walker.c
[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>
Fri, 23 Sep 2005 04:52:10 +0000 (21:52 -0700)
commit80077f071614ef1775472eb54d59c071e15d5784
treefe801ad6c55995e978cdebf80ba88b6ba42c6b4a
parentbc7ccfd2d7342bf81d344c4215a17ebbb64d9212
[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