| 5914 | } |
| 5915 | |
| 5916 | static int diff_opt_submodule(const struct option *opt, |
| 5917 | const char *arg, int unset) |
| 5918 | { |
| 5919 | struct diff_options *options = opt->value; |
| 5920 | |
| 5921 | BUG_ON_OPT_NEG(unset); |
| 5922 | if (!arg) |
| 5923 | arg = "log"; |
| 5924 | if (parse_submodule_params(options, arg)) |
| 5925 | return error(_("failed to parse --submodule option parameter: '%s'"), |
| 5926 | arg); |
| 5927 | return 0; |
| 5928 | } |
| 5929 | |
| 5930 | static int diff_opt_textconv(const struct option *opt, |
| 5931 | const char *arg, int unset) |
nothing calls this directly
no test coverage detected