interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / helper / test-advise.c

25 lines · 567 bytes Raw Blame History
1#define USE_THE_REPOSITORY_VARIABLE
2
3#include "test-tool.h"
4#include "advice.h"
5#include "config.h"
6#include "environment.h"
7#include "setup.h"
8
9int cmd__advise_if_enabled(int argc, const char **argv)
10{
11 if (argc != 2)
12 die("usage: %s <advice>", argv[0]);
13
14 setup_git_directory(the_repository);
15 repo_config(the_repository, git_default_config, NULL);
16
17 /*
18 * Any advice type can be used for testing, but NESTED_TAG was
19 * selected here and in t0018 where this command is being
20 * executed.
21 */
22 advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]);
23
24 return 0;
25}