MCPcopy Index your code
hub / github.com/git/git / diff_opt_submodule

Function diff_opt_submodule

diff.c:5916–5928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5914}
5915
5916static 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
5930static int diff_opt_textconv(const struct option *opt,
5931 const char *arg, int unset)

Callers

nothing calls this directly

Calls 2

parse_submodule_paramsFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected