]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: support per-repository config
authorJonathan Tan <jonathantanmy@google.com>
Thu, 17 Jun 2021 17:13:23 +0000 (10:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jun 2021 16:57:42 +0000 (09:57 -0700)
commitef7dc2e9ccb832c1dc29d5102c09f6c4a51d4dca
tree41fcf5bf22fa1ce772820e17da982e11ed1dd9b8
parentebaf3bcf1aecdc31062ede80fca3a7c98202d8bb
promisor-remote: support per-repository config

Instead of using global variables to store promisor remote information,
store this config in struct repository instead, and add
repository-agnostic non-static functions corresponding to the existing
non-static functions that only work on the_repository.

The actual lazy-fetching of missing objects currently does not work on
repositories other than the_repository, and will still not work after
this commit, so add a BUG message explaining this. A subsequent commit
will remove this limitation.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c
promisor-remote.h
repository.c
repository.h