Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2020-08-18 07:01:37 +0300
committerJunio C Hamano <gitster@pobox.com>2020-08-19 02:46:53 +0300
commit9dfa8dbeee18a126aabcdd36a06e5d6b5eb6a58a (patch)
tree033b55043077a02c23f9397f420c67751c320e3c /remote-curl.c
parent7ca3c0ac37bfb803f11db14b7223f6d8f0cd142e (diff)
fetch-pack: remove no_dependents code
Now that Git has switched to using a subprocess to lazy-fetch missing objects, remove the no_dependents code as it is no longer used. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/remote-curl.c b/remote-curl.c
index 62b3a45cde..ce470f27b9 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -40,7 +40,6 @@ struct options {
push_cert : 2,
deepen_relative : 1,
from_promisor : 1,
- no_dependents : 1,
atomic : 1,
object_format : 1;
const struct git_hash_algo *hash_algo;
@@ -190,9 +189,6 @@ static int set_option(const char *name, const char *value)
} else if (!strcmp(name, "from-promisor")) {
options.from_promisor = 1;
return 0;
- } else if (!strcmp(name, "no-dependents")) {
- options.no_dependents = 1;
- return 0;
} else if (!strcmp(name, "filter")) {
options.filter = xstrdup(value);
return 0;
@@ -1175,8 +1171,6 @@ static int fetch_git(struct discovery *heads,
strvec_push(&args, "--deepen-relative");
if (options.from_promisor)
strvec_push(&args, "--from-promisor");
- if (options.no_dependents)
- strvec_push(&args, "--no-dependents");
if (options.filter)
strvec_pushf(&args, "--filter=%s", options.filter);
strvec_push(&args, url.buf);