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

Function diff_opt_ignore_submodules

diff.c:5773–5784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5771}
5772
5773static int diff_opt_ignore_submodules(const struct option *opt,
5774 const char *arg, int unset)
5775{
5776 struct diff_options *options = opt->value;
5777
5778 BUG_ON_OPT_NEG(unset);
5779 if (!arg)
5780 arg = "all";
5781 options->flags.override_submodule_config = 1;
5782 handle_ignore_submodules_arg(options, arg);
5783 return 0;
5784}
5785
5786static int diff_opt_line_prefix(const struct option *opt,
5787 const char *optarg, int unset)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected