packfile: add repository argument to packed_object_info
commit720aaa1a74a8cf5fcc35bb294013d30d218bec01
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 25 Apr 2018 18:21:02 +0000 (25 11:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 01:54:27 +0000 (26 10:54 +0900)
tree12316a1673fa22866dd01106371835ab3c7f3565
parent144f4948a134ed3eedeb87b688408c9d4da094ff
packfile: add repository argument to packed_object_info

Add a repository argument to allow callers of packed_object_info 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: 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>
builtin/pack-objects.c
packfile.c
packfile.h
sha1_file.c