diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2019-02-11 17:16:58 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-11 21:10:57 (GMT) |
commit | 5fe81438b52f8464947e5b27381a898d7451260e (patch) | |
tree | 6c570e2e27e2337d9c45a7ff76253b634f517cce /sequencer.c | |
parent | 268fbcd172cdb306e8a3e7143cc16677c963d6cd (diff) | |
download | git-5fe81438b52f8464947e5b27381a898d7451260e.zip git-5fe81438b52f8464947e5b27381a898d7451260e.tar.gz git-5fe81438b52f8464947e5b27381a898d7451260e.tar.bz2 |
sequencer: make sign_off_header a file local symbol
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>
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c index 4034c04..d0c2277 100644 --- a/sequencer.c +++ b/sequencer.c @@ -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") |