]> git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-advise.c
The fifth batch
[thirdparty/git.git] / t / helper / test-advise.c
1 #include "test-tool.h"
2 #include "advice.h"
3 #include "config.h"
4 #include "setup.h"
5
6 int cmd__advise_if_enabled(int argc, const char **argv)
7 {
8 if (argc != 2)
9 die("usage: %s <advice>", argv[0]);
10
11 setup_git_directory();
12 git_config(git_default_config, NULL);
13
14 /*
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.
18 */
19 advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]);
20
21 return 0;
22 }