fetch: use `fetch_config` to store "fetch.prune" value
commitb779a25e0570d76b9e41dd9203b36629b90094cd
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 May 2023 11:48:56 +0000 (17 13:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 May 2023 16:55:33 +0000 (17 09:55 -0700)
tree74a394a7639bd6d3df982ef65b53bcc366dd76e9
parentd1adf85b0a21ea6575b145959c53e7d5e4a0cba4
fetch: use `fetch_config` to store "fetch.prune" value

Move the parsed "fetch.prune" config value into the `fetch_config`
structure. This reduces our reliance on global variables and further
unifies the way we parse the configuration in git-fetch(1).

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c