shallow: add repository argument to set_alternate_shallow_file
commit6a2df51c848c86e5620dcdf1a0ee2de637937b77
authorStefan Beller <sbeller@google.com>
Thu, 17 May 2018 22:51:43 +0000 (17 15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 23:13:10 +0000 (18 08:13 +0900)
treee154a0df4bc19db9eb45efa9143d92d2e73601b9
parent1f93ecd1ab15800fa98a0ce3efa5166fa642ab80
shallow: add repository argument to set_alternate_shallow_file

Add a repository argument to allow callers of set_alternate_shallow_file
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>
commit.h
environment.c
git.c
shallow.c