commit: add repository argument to lookup_commit_reference
authorStefan Beller <sbeller@google.com>
Fri, 29 Jun 2018 01:21:58 +0000 (18:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jun 2018 17:43:39 +0000 (10:43 -0700)
commit2122f6754c93be8f02bfb5704ed96c88fc9837a8
tree859ca68d6cfa9b3a3198a80b1f97c8d4e191fad8
parent21e1ee8f4f4b7767d506b02504e97f6bcaef13a0
commit: add repository argument to lookup_commit_reference

Add a repository argument to allow callers of lookup_commit_reference
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
27 files changed:
bisect.c
blame.c
branch.c
builtin/branch.c
builtin/clone.c
builtin/describe.c
builtin/diff-tree.c
builtin/log.c
builtin/merge-base.c
builtin/notes.c
builtin/pull.c
builtin/replace.c
builtin/reset.c
builtin/rev-parse.c
builtin/show-branch.c
builtin/tag.c
bundle.c
commit.c
commit.h
merge-recursive.c
notes-merge.c
parse-options-cb.c
remote.c
revision.c
sequencer.c
sha1-name.c
submodule.c