]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: use `fetch_config` to store "fetch.showForcedUpdates" value
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 May 2023 11:49:04 +0000 (13:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 May 2023 16:55:33 +0000 (09:55 -0700)
commitba28b2ca5dcefb54689d0c442999b74af619f898
treebca7ef0f5f54df2a7666b1c7f5e35cc23dd7b35b
parent2b472cfeacbffcabe0d3a358d50d32ce28fdf4a0
fetch: use `fetch_config` to store "fetch.showForcedUpdates" value

Move the parsed "fetch.showForcedUpdaets" 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