]> git.ipfire.org Git - thirdparty/git.git/commit - shallow.c
shallow: add repository argument to is_repository_shallow
authorStefan Beller <sbeller@google.com>
Thu, 17 May 2018 22:51:46 +0000 (15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 23:13:10 +0000 (08:13 +0900)
commitc88134870e8b2da084e37fb86ff88fb7d7617d61
treeccc6e0b810e3e986d69652538b05dfe24c0c0a35
parent22bdc7c4ff28452283c150b627ed12a6ee370532
shallow: add repository argument to is_repository_shallow

Add a repository argument to allow callers of is_repository_shallow
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>
builtin/fetch.c
builtin/pack-objects.c
builtin/prune.c
builtin/rev-parse.c
commit.c
commit.h
fetch-pack.c
send-pack.c
shallow.c
upload-pack.c