diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-08-23 12:44:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-25 21:07:52 +0200 |
commit | c2a4b6d4ee4f7f52521c1c36d63744f1a3c08d50 (patch) | |
tree | 2bb6a306b5340c88fc0909a2fba31f8c044a425e /advice.c | |
parent | advice: remove read uses of most global `advice_` variables (diff) | |
download | git-c2a4b6d4ee4f7f52521c1c36d63744f1a3c08d50.tar.xz git-c2a4b6d4ee4f7f52521c1c36d63744f1a3c08d50.zip |
advice: remove use of global advice_add_embedded_repo
The external use of this variable was added in 532139940c9 (add: warn
when adding an embedded repository, 2017-06-14). For the use-case it's
more straightforward to track whether we've shown advice in
check_embedded_repo() than setting the global variable.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
-rw-r--r-- | advice.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -4,7 +4,6 @@ #include "help.h" #include "string-list.h" -int advice_add_embedded_repo = 1; int advice_graft_file_deprecated = 1; static int advice_use_color = -1; @@ -38,7 +37,6 @@ static struct { const char *name; int *preference; } advice_config[] = { - { "addEmbeddedRepo", &advice_add_embedded_repo }, { "graftFileDeprecated", &advice_graft_file_deprecated }, }; |