summaryrefslogtreecommitdiff
path: root/advice.c
diff options
context:
space:
mode:
authorHeba Waly <heba.waly@gmail.com>2020-03-02 20:02:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-05 14:15:04 (GMT)
commitf665d63a912748bc1397940a0dc1de80c6f693e3 (patch)
tree0c5c33a8281d32eb41e74585650a0da71e737b83 /advice.c
parentb3b18d1621315fb187689ee6c759bdbbea214eb8 (diff)
downloadgit-f665d63a912748bc1397940a0dc1de80c6f693e3.zip
git-f665d63a912748bc1397940a0dc1de80c6f693e3.tar.gz
git-f665d63a912748bc1397940a0dc1de80c6f693e3.tar.bz2
tag: use new advice API to check visibility
change the advise call in tag library from advise() to advise_if_enabled() to construct an example of the usage of the new API. Signed-off-by: Heba Waly <heba.waly@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
-rw-r--r--advice.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/advice.c b/advice.c
index 9814d6c..ef4bef6 100644
--- a/advice.c
+++ b/advice.c
@@ -29,7 +29,6 @@ int advice_ignored_hook = 1;
int advice_waiting_for_editor = 1;
int advice_graft_file_deprecated = 1;
int advice_checkout_ambiguous_remote_branch_name = 1;
-int advice_nested_tag = 1;
int advice_submodule_alternate_error_strategy_die = 1;
static int advice_use_color = -1;
@@ -89,7 +88,6 @@ static struct {
{ "waitingForEditor", &advice_waiting_for_editor },
{ "graftFileDeprecated", &advice_graft_file_deprecated },
{ "checkoutAmbiguousRemoteBranchName", &advice_checkout_ambiguous_remote_branch_name },
- { "nestedTag", &advice_nested_tag },
{ "submoduleAlternateErrorStrategyDie", &advice_submodule_alternate_error_strategy_die },
/* make this an alias for backward compatibility */