]> git.ipfire.org Git - thirdparty/git.git/commit - notes-cache.c
commit: add repository argument to lookup_commit_reference_gently
authorStefan Beller <sbeller@google.com>
Fri, 29 Jun 2018 01:21:57 +0000 (18:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jun 2018 17:43:39 +0000 (10:43 -0700)
commit21e1ee8f4f4b7767d506b02504e97f6bcaef13a0
treefe7a386acffd7f8c142858d06a70153cbe3ba2c9
parentf86bcc7b2ce6cad68ba1a48a528e380c6126705e
commit: add repository argument to lookup_commit_reference_gently

Add a repository argument to allow callers of
lookup_commit_reference_gently 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>
20 files changed:
archive.c
blame.c
builtin/checkout.c
builtin/describe.c
builtin/fetch.c
builtin/reflog.c
builtin/show-branch.c
bundle.c
commit-graph.c
commit.c
commit.h
fast-import.c
notes-cache.c
ref-filter.c
remote.c
sequencer.c
sha1-name.c
shallow.c
walker.c
wt-status.c