object: add repository argument to parse_object_buffer
authorStefan Beller <sbeller@google.com>
Fri, 29 Jun 2018 01:21:53 +0000 (18:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jun 2018 17:43:38 +0000 (10:43 -0700)
commit1ec5bfd24e57c8d40d3f7d911fb9b85723282a46
tree9970da65f152e312829193145bbddecd846111f6
parent5abddd1eb72ca47cc84a9fc888c30ebaadde2eec
object: add repository argument to parse_object_buffer

Add a repository argument to allow the callers of parse_object_buffer
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-export.c
builtin/fsck.c
builtin/index-pack.c
builtin/unpack-objects.c
object.c
object.h
ref-filter.c