Skip to content

Commit 9123d5d

Browse files
chriscoolgitster
authored andcommitted
apply: make some parsing functions static again
Some parsing functions that were used in both "apply.c" and "builtin/apply.c" are now only used in the former, so they can be made static to "apply.c". Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 13b5af2 commit 9123d5d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

apply.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static void git_apply_config(void)
2727
git_config(git_default_config, NULL);
2828
}
2929

30-
int parse_whitespace_option(struct apply_state *state, const char *option)
30+
static int parse_whitespace_option(struct apply_state *state, const char *option)
3131
{
3232
if (!option) {
3333
state->ws_error_action = warn_on_ws_error;
@@ -57,8 +57,8 @@ int parse_whitespace_option(struct apply_state *state, const char *option)
5757
return error(_("unrecognized whitespace option '%s'"), option);
5858
}
5959

60-
int parse_ignorewhitespace_option(struct apply_state *state,
61-
const char *option)
60+
static int parse_ignorewhitespace_option(struct apply_state *state,
61+
const char *option)
6262
{
6363
if (!option || !strcmp(option, "no") ||
6464
!strcmp(option, "false") || !strcmp(option, "never") ||

apply.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ struct apply_state {
9797
int applied_after_fixing_ws;
9898
};
9999

100-
extern int parse_whitespace_option(struct apply_state *state,
101-
const char *option);
102-
extern int parse_ignorewhitespace_option(struct apply_state *state,
103-
const char *option);
104-
105100
extern int apply_option_parse_exclude(const struct option *opt,
106101
const char *arg, int unset);
107102
extern int apply_option_parse_include(const struct option *opt,

0 commit comments

Comments
 (0)