object: add repository argument to lookup_object
authorStefan Beller <sbeller@google.com>
Fri, 29 Jun 2018 01:21:52 +0000 (18:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jun 2018 17:43:38 +0000 (10:43 -0700)
commit5abddd1eb72ca47cc84a9fc888c30ebaadde2eec
tree3aa159b370a0ecc3ac88e8b3453c049f72af15c3
parent109cd76dd3467bd05f8d2145b857006649741d5c
object: add repository argument to lookup_object

Add a repository argument to allow callers of lookup_object to be more
specific about which repository to handle. This is a small mechanical
change; it doesn't change the implementation to handle repositories
other than the_repository yet.

As with the previous commits, use a macro to catch callers passing a
repository other than the_repository at compile time.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
blob.c
builtin/fast-export.c
builtin/fsck.c
builtin/name-rev.c
builtin/prune.c
builtin/unpack-objects.c
commit.c
fetch-pack.c
http-push.c
object.c
object.h
reachable.c
tag.c
tree.c
upload-pack.c