Merge branch 'ds/trace-log-progress-fix'
[git.git] / t / helper / test-advise.c
blob38cdc2884e1128f16b3e6214c3fef3e877d7a03e
1 #include "test-tool.h"
2 #include "cache.h"
3 #include "advice.h"
4 #include "config.h"
6 int cmd__advise_if_enabled(int argc, const char **argv)
8 if (!argv[1])
9 die("usage: %s <advice>", argv[0]);
11 setup_git_directory();
12 git_config(git_default_config, NULL);
15 * Any advice type can be used for testing, but NESTED_TAG was
16 * selected here and in t0018 where this command is being
17 * executed.
19 advise_if_enabled(ADVICE_NESTED_TAG, argv[1]);
21 return 0;