Skip to content

Commit 8ac5444

Browse files
committed
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
2 parents e9bd4aa + 5fe8143 commit 8ac5444

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
#define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION"
3737

38-
const char sign_off_header[] = "Signed-off-by: ";
38+
static const char sign_off_header[] = "Signed-off-by: ";
3939
static const char cherry_picked_prefix[] = "(cherry picked from commit ";
4040

4141
GIT_PATH_FUNC(git_path_commit_editmsg, "COMMIT_EDITMSG")

sequencer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ int complete_action(struct repository *r, struct replay_opts *opts, unsigned fla
107107
unsigned autosquash);
108108
int rearrange_squash(struct repository *r);
109109

110-
extern const char sign_off_header[];
111-
112110
/*
113111
* Append a signoff to the commit message in "msgbuf". The ignore_footer
114112
* parameter specifies the number of bytes at the end of msgbuf that should

0 commit comments

Comments
 (0)