diff options
| author | Christian Couder <christian.couder@gmail.com> | 2026-02-16 14:23:09 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-17 11:46:40 -0800 |
| commit | fe5335974323da5e829676735cc32d89422d58ba (patch) | |
| tree | 255203def73b8100fe409d83519ddcd2fea1acb7 /contrib/persistent-https | |
| parent | 3e20258d11f188189c18bb6c4f2b2eee47abf03d (diff) | |
| download | git-fe5335974323da5e829676735cc32d89422d58ba.tar.gz git-fe5335974323da5e829676735cc32d89422d58ba.zip | |
clone: make filter_options local to cmd_clone()
The `struct list_objects_filter_options filter_options` variable used
in "builtin/clone.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_clone() by
moving its definition into that function and making it non-static.
The only additional change to make this work is to pass it as an
argument to checkout(). So it's a small quite cheap cleanup anyway.
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
