packfile: add repository argument to read_object
commit5da6534dd6ef72970989aa5a4194e13e6a587bd6
authorStefan Beller <sbeller@google.com>
Wed, 25 Apr 2018 18:21:03 +0000 (25 11:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 01:54:27 +0000 (26 10:54 +0900)
tree618d9ee6d3a57a333b49516f6a14d7e7cae4c603
parent720aaa1a74a8cf5fcc35bb294013d30d218bec01
packfile: add repository argument to read_object

Add a repository argument to allow the callers of read_object
to be more specific about which repository to act on. 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>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c