Skip to content
Snippets Groups Projects
Commit 5fe81438 authored by Ramsay Jones's avatar Ramsay Jones Committed by Junio C Hamano
Browse files

sequencer: make sign_off_header a file local symbol


Commit d0aaa46f ("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: default avatarRamsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 268fbcd1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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")
Loading
Loading
Loading
Loading
@@ -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,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment