]> granicus.if.org Git - git/commitdiff
sequencer: make sign_off_header a file local symbol
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Mon, 11 Feb 2019 17:16:58 +0000 (17:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Feb 2019 21:10:57 +0000 (13:10 -0800)
Commit d0aaa46fd3 ("commit: move empty message checks to libgit",
2017-11-10) removes the last use of 'sign_off_header' outside of
the "sequencer.c" source file. Remove the extern declaration from
the header file and mark the definition of the symbol with the
static keyword.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
sequencer.h

index 4034c0461b5022dad01b25d824cdc4f47ee09d13..d0c2277455007a6a9e8bbaefc01a5741ec01f878 100644 (file)
@@ -31,7 +31,7 @@
 
 #define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION"
 
-const char sign_off_header[] = "Signed-off-by: ";
+static const char sign_off_header[] = "Signed-off-by: ";
 static const char cherry_picked_prefix[] = "(cherry picked from commit ";
 
 GIT_PATH_FUNC(git_path_commit_editmsg, "COMMIT_EDITMSG")
index c5787c6b566bbc89caad1a099f4281fecba01766..e025deb007a57a02c4a3f8122cfd1a84a601d326 100644 (file)
@@ -83,8 +83,6 @@ int check_todo_list(void);
 int skip_unnecessary_picks(void);
 int rearrange_squash(void);
 
-extern const char sign_off_header[];
-
 void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
 void append_conflicts_hint(struct strbuf *msgbuf);
 int message_is_empty(const struct strbuf *sb,