commit: add repository argument to lookup_commit_graft
commit1f93ecd1ab15800fa98a0ce3efa5166fa642ab80
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 17 May 2018 22:51:42 +0000 (17 15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 23:13:10 +0000 (18 08:13 +0900)
tree071d13a08bc4efe98aba7a90190d1e2c303d3ad4
parent3ee37656ee6e6c2510add974af057a9d02d3cf4a
commit: add repository argument to lookup_commit_graft

Add a repository argument to allow callers of lookup_commit_graft 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: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h
fsck.c
shallow.c