summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
commit8ac5444cba9349a5f89e64e1774ea9d6740a5add (patch)
tree2c3a2266d018b43b709f296b4be7d2a858dac495
parentRelNotes/2.21: misc typo/English fixups (diff)
parentsequencer: make sign_off_header a file local symbol (diff)
downloadtgif-8ac5444cba9349a5f89e64e1774ea9d6740a5add.tar.xz
Merge branch 'rj/sequencer-sign-off-header-static'
Code clean-up. * rj/sequencer-sign-off-header-static: sequencer: make sign_off_header a file local symbol
-rw-r--r--sequencer.c2
-rw-r--r--sequencer.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/sequencer.c b/sequencer.c
index 972402e8c0..0db410d590 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -35,7 +35,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")
diff --git a/sequencer.h b/sequencer.h
index 93e891309b..4d505b3590 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -107,8 +107,6 @@ int complete_action(struct repository *r, struct replay_opts *opts, unsigned fla
unsigned autosquash);
int rearrange_squash(struct repository *r);
-extern const char sign_off_header[];
-
/*
* Append a signoff to the commit message in "msgbuf". The ignore_footer
* parameter specifies the number of bytes at the end of msgbuf that should