summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-23 12:44:02 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-08-25 12:07:52 -0700
commitab628588f80e8dd889b700515c41548c1a356dcc (patch)
tree5d0808dccd5db4848038b992cdb5667f7074e098 /advice.h
parentadvice: remove use of global advice_add_embedded_repo (diff)
downloadtgif-ab628588f80e8dd889b700515c41548c1a356dcc.tar.xz
advice: move advice.graftFileDeprecated squashing to commit.[ch]
Move the squashing of the advice.graftFileDeprecated advice over to an external variable in commit.[ch], allowing advice() to purely use the new-style API of invoking advice() with an enum. See 8821e90a09a (advice: don't pointlessly suggest --convert-graft-file, 2018-11-27) for why quieting this advice was needed. It's more straightforward to move this code to commit.[ch] and use it builtin/replace.c, than to go through the indirection of advice.[ch]. Because this was the last advice_config variable we can remove that old facility from advice.c. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
-rw-r--r--advice.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/advice.h b/advice.h
index 4b754f4c62..e380a0562e 100644
--- a/advice.h
+++ b/advice.h
@@ -5,8 +5,6 @@
struct string_list;
-extern int advice_graft_file_deprecated;
-
/*
* To add a new advice, you need to:
* Define a new advice_type.