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

Add a repository argument to allow the callers of retry_bad_packed_offset
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>
packfile.c