treewide: be explicit about dependence on advice.h
commit6c6ddf92d511c423b8b54fb1b01d563b6f4c58f7
authorElijah Newren <newren@gmail.com>
Tue, 11 Apr 2023 03:00:39 +0000 (11 03:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Apr 2023 15:52:09 +0000 (11 08:52 -0700)
treee5ba01a4e8c72c4ddd196f3da313617849c62fdb
parent74ea5c9574d29a510602492fcd672e5d09c841b0
treewide: be explicit about dependence on advice.h

Dozens of files made use of advice functions, without explicitly
including advice.h.  This made it more difficult to find which files
could remove a dependence on cache.h.  Make C files explicitly include
advice.h if they are using it.

Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
25 files changed:
add-patch.c
branch.c
builtin/add.c
builtin/am.c
builtin/clone.c
builtin/commit.c
builtin/fetch.c
builtin/merge-recursive.c
builtin/merge.c
builtin/mv.c
builtin/pull.c
builtin/push.c
builtin/reset.c
builtin/tag.c
cache.h
config.c
convert.c
editor.c
notes-merge.c
object-name.c
refs.c
sequencer.c
transport.c
unpack-trees.c
wt-status.c