setup.h: move declarations for setup.c functions from cache.h
[git.git] / t / helper / test-advise.c
blob4e6ed30afa1273f25aeca0a37b633bccca6a569c
1 #include "test-tool.h"
2 #include "cache.h"
3 #include "advice.h"
4 #include "config.h"
5 #include "setup.h"
7 int cmd__advise_if_enabled(int argc, const char **argv)
9 if (argc != 2)
10 die("usage: %s <advice>", argv[0]);
12 setup_git_directory();
13 git_config(git_default_config, NULL);
16 * Any advice type can be used for testing, but NESTED_TAG was
17 * selected here and in t0018 where this command is being
18 * executed.
20 advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]);
22 return 0;