MCPcopy Create free account
hub / github.com/git/git / parse_ignorewhitespace_option

Function parse_ignorewhitespace_option

apply.c:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static int parse_ignorewhitespace_option(struct apply_state *state,
93 const char *option)
94{
95 if (!option || !strcmp(option, "no") ||
96 !strcmp(option, "false") || !strcmp(option, "never") ||
97 !strcmp(option, "none")) {
98 state->ws_ignore_action = ignore_ws_none;
99 return 0;
100 }
101 if (!strcmp(option, "change")) {
102 state->ws_ignore_action = ignore_ws_change;
103 return 0;
104 }
105 return error(_("unrecognized whitespace ignore option '%s'"), option);
106}
107
108int init_apply_state(struct apply_state *state,
109 struct repository *repo,

Callers 1

init_apply_stateFunction · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected