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

Function parse_submodule_params

diff.c:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194static int parse_submodule_params(struct diff_options *options, const char *value)
195{
196 if (!strcmp(value, "log"))
197 options->submodule_format = DIFF_SUBMODULE_LOG;
198 else if (!strcmp(value, "short"))
199 options->submodule_format = DIFF_SUBMODULE_SHORT;
200 else if (!strcmp(value, "diff"))
201 options->submodule_format = DIFF_SUBMODULE_INLINE_DIFF;
202 /*
203 * Please update $__git_diff_submodule_formats in
204 * git-completion.bash when you add new formats.
205 */
206 else
207 return -1;
208 return 0;
209}
210
211int git_config_rename(const char *var, const char *value)
212{

Callers 2

git_diff_ui_configFunction · 0.85
diff_opt_submoduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected