sha1_file: allow read_object to read objects in arbitrary repositories
commit1b9b5c695e34051c80c9240fdb22e7c89ff0fd5f
authorStefan Beller <sbeller@google.com>
Tue, 16 Oct 2018 23:35:32 +0000 (16 16:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Oct 2018 07:21:04 +0000 (19 16:21 +0900)
treed7199dcc6448d97cb228ef42d74099370f2ec462
parentc4df23f7927d8d00e666a3c8d1b3375f1dc8a3c1
sha1_file: allow read_object to read objects in arbitrary repositories

Allow read_object (a file local functon in sha1_file) to
handle arbitrary repositories by passing the repository down
to oid_object_info_extended.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-file.c