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

Add a repository argument to allow callers of register_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/pack-objects.c
builtin/receive-pack.c
commit.h
fetch-pack.c
shallow.c
upload-pack.c