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

Add a repository argument to allow the callers of unpack_entry
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: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
pack-check.c
packfile.c
packfile.h