summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2026-02-16 14:23:10 +0100
committerJunio C Hamano <gitster@pobox.com>2026-02-17 11:46:40 -0800
commitf7565410e1f803873c097258109ff0258ad913fc (patch)
treee8474988cd3fbfa6c2c0830ca5bf4e28b6a5ddfb /contrib/persistent-https
parentfe5335974323da5e829676735cc32d89422d58ba (diff)
downloadgit-f7565410e1f803873c097258109ff0258ad913fc.tar.gz
git-f7565410e1f803873c097258109ff0258ad913fc.zip
fetch: make filter_options local to cmd_fetch()
The `struct list_objects_filter_options filter_options` variable used in "builtin/fetch.c" to store the parsed filters specified by `--filter=<filterspec>` is currently a static variable global to the file. As we are going to use it more in a following commit, it could become a bit less easy to understand how it's managed. To avoid that, let's make it clear that it's owned by cmd_fetch() by moving its definition into that function and making it non-static. This requires passing a pointer to it through the prepare_transport(), do_fetch(), backfill_tags(), fetch_one_setup_partial(), and fetch_one() functions, but it's quite straightforward. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions