summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-23 10:44:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-25 19:07:52 (GMT)
commitab628588f80e8dd889b700515c41548c1a356dcc (patch)
tree5d0808dccd5db4848038b992cdb5667f7074e098 /commit.h
parentc2a4b6d4ee4f7f52521c1c36d63744f1a3c08d50 (diff)
downloadgit-ab628588f80e8dd889b700515c41548c1a356dcc.zip
git-ab628588f80e8dd889b700515c41548c1a356dcc.tar.gz
git-ab628588f80e8dd889b700515c41548c1a356dcc.tar.bz2
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 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index df42eb4..3ea3276 100644
--- a/commit.h
+++ b/commit.h
@@ -41,6 +41,7 @@ struct commit {
};
extern int save_commit_buffer;
+extern int no_graft_file_deprecated_advice;
extern const char *commit_type;
/* While we can decorate any object with a name, it's only used for commits.. */