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

Function get_missing_commit_check_level

rebase-interactive.c:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29static enum missing_commit_check_level get_missing_commit_check_level(void)
30{
31 const char *value;
32
33 if (repo_config_get_value(the_repository, "rebase.missingcommitscheck", &value) ||
34 !strcasecmp("ignore", value))
35 return MISSING_COMMIT_CHECK_IGNORE;
36 if (!strcasecmp("warn", value))
37 return MISSING_COMMIT_CHECK_WARN;
38 if (!strcasecmp("error", value))
39 return MISSING_COMMIT_CHECK_ERROR;
40 warning(_("unrecognized setting %s for option "
41 "rebase.missingCommitsCheck. Ignoring."), value);
42 return MISSING_COMMIT_CHECK_IGNORE;
43}
44
45void append_todo_help(int command_count,
46 const char *shortrevisions, const char *shortonto,

Callers 2

append_todo_helpFunction · 0.85
todo_list_checkFunction · 0.85

Calls 2

repo_config_get_valueFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected