| 6322 | } |
| 6323 | |
| 6324 | int diff_opt_parse(struct diff_options *options, |
| 6325 | const char **av, int ac, const char *prefix) |
| 6326 | { |
| 6327 | struct option no_options[] = { OPT_END() }; |
| 6328 | struct option *parseopts = add_diff_options(no_options, options); |
| 6329 | |
| 6330 | if (!prefix) |
| 6331 | prefix = ""; |
| 6332 | |
| 6333 | ac = parse_options(ac, av, prefix, parseopts, NULL, |
| 6334 | PARSE_OPT_KEEP_DASHDASH | |
| 6335 | PARSE_OPT_KEEP_UNKNOWN_OPT | |
| 6336 | PARSE_OPT_NO_INTERNAL_HELP | |
| 6337 | PARSE_OPT_ONE_SHOT | |
| 6338 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 6339 | free(parseopts); |
| 6340 | |
| 6341 | return ac; |
| 6342 | } |
| 6343 | |
| 6344 | int parse_rename_score(const char **cp_p) |
| 6345 | { |
no test coverage detected