]> git.ipfire.org Git - thirdparty/git.git/commit - editor.c
advice: remove read uses of most global `advice_` variables
authorBen Boeckel <mathstuf@gmail.com>
Mon, 23 Aug 2021 10:44:00 +0000 (12:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Aug 2021 19:07:52 +0000 (12:07 -0700)
commited9bff0817d5a7500b50a39c1c35b44aa3e72578
tree2fbf27448d1085ad518e03a6c2a6c7902d271a28
parent69290551b9a4fa22e76612926e131f926c6c9f11
advice: remove read uses of most global `advice_` variables

In c4a09cc9ccb (Merge branch 'hw/advise-ng', 2020-03-25), a new API for
accessing advice variables was introduced and deprecated `advice_config`
in favor of a new array, `advice_setting`.

This patch ports all but two uses which read the status of the global
`advice_` variables over to the new `advice_enabled` API. We'll deal
with advice_add_embedded_repo and advice_graft_file_deprecated
separately.

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
22 files changed:
advice.c
advice.h
branch.c
builtin/add.c
builtin/am.c
builtin/checkout.c
builtin/clone.c
builtin/commit.c
builtin/fetch.c
builtin/merge.c
builtin/push.c
builtin/reset.c
builtin/rm.c
builtin/submodule--helper.c
editor.c
notes-merge.c
object-name.c
remote.c
run-command.c
sequencer.c
unpack-trees.c
wt-status.c