summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2018-04-22 18:12:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-24 01:55:04 (GMT)
commit0b6b34295413410e4ca52df4671d2a217e56a57b (patch)
tree9e02df32fe16de0beb8f2cc7103174a6e7d5a7b0 /remote-curl.c
parent2e85a0c8abe29f9adad2ec0a977629ba90723973 (diff)
downloadgit-0b6b34295413410e4ca52df4671d2a217e56a57b.zip
git-0b6b34295413410e4ca52df4671d2a217e56a57b.tar.gz
git-0b6b34295413410e4ca52df4671d2a217e56a57b.tar.bz2
walker: drop fields of `struct walker` which are always 1
After the previous commit, both users of `struct walker` set `get_tree`, `get_history` and `get_all` to 1. Drop those fields and simplify the walker implementation accordingly. Let's hope that any out-of-tree users will not mind this change. They should notice that the compilation fails as they try to set these fields. (If they do not set them, note that `get_http_walker()` leaves them undefined, so the behavior will have been undefined all the time.) Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/remote-curl.c b/remote-curl.c
index a7c4c9b..dd86a6c 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -797,9 +797,6 @@ static int fetch_dumb(int nr_heads, struct ref **to_fetch)
targets[i] = xstrdup(oid_to_hex(&to_fetch[i]->old_oid));
walker = get_http_walker(url.buf);
- walker->get_all = 1;
- walker->get_tree = 1;
- walker->get_history = 1;
walker->get_verbosely = options.verbosity >= 3;
walker->get_recover = 0;
ret = walker_fetch(walker, nr_heads, targets, NULL, NULL);