]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
cache.h: add repository argument to oid_object_info
authorStefan Beller <sbeller@google.com>
Wed, 25 Apr 2018 18:20:59 +0000 (11:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 01:54:27 +0000 (10:54 +0900)
commit0df8e96566ddcae4adc4efc096944c064f60b8bd
tree19c8b0277b21dcd9a9baa71ca5541bd59853afae
parent7ecd8690602170f0993923c99645c7c6005e3dfa
cache.h: add repository argument to oid_object_info

Add a repository argument to allow the callers of oid_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: Stefan Beller <sbeller@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
32 files changed:
archive-tar.c
archive-zip.c
blame.c
builtin/blame.c
builtin/cat-file.c
builtin/describe.c
builtin/fast-export.c
builtin/fetch.c
builtin/fsck.c
builtin/index-pack.c
builtin/ls-tree.c
builtin/mktree.c
builtin/pack-objects.c
builtin/prune.c
builtin/replace.c
builtin/tag.c
builtin/unpack-objects.c
cache.h
diff.c
fast-import.c
list-objects-filter.c
object.c
pack-bitmap-write.c
packfile.c
reachable.c
refs.c
remote.c
sequencer.c
sha1_file.c
sha1_name.c
submodule.c
tag.c