commit: add repository argument to lookup_commit
commitc1f5eb49620d4f287af28509621a364e3888cfe7
authorStefan Beller <sbeller@google.com>
Fri, 29 Jun 2018 01:21:59 +0000 (28 18:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jun 2018 17:43:39 +0000 (29 10:43 -0700)
tree336aedde87d6008ed918ff3d58759e4dfdbceae5
parent2122f6754c93be8f02bfb5704ed96c88fc9837a8
commit: add repository argument to lookup_commit

Add a repository argument to allow callers of lookup_commit 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>
19 files changed:
builtin/am.c
builtin/commit-tree.c
builtin/diff-tree.c
builtin/fast-export.c
builtin/fmt-merge-msg.c
builtin/merge-base.c
builtin/verify-commit.c
commit-graph.c
commit.c
commit.h
fetch-pack.c
log-tree.c
notes-utils.c
object.c
sequencer.c
sha1-name.c
shallow.c
tag.c
tree.c