Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/helper/test-advise.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 9 int cmd__advise_if_enabled(int argc, const char **argv) 10 { 11 if (argc != 2) 12 die("usage: %s ", 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 }