| 90 | } |
| 91 | |
| 92 | static 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 | |
| 108 | int init_apply_state(struct apply_state *state, |
| 109 | struct repository *repo, |
no test coverage detected