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

Function handle_ignored_arg

builtin/commit.c:1175–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173}
1174
1175static void handle_ignored_arg(struct wt_status *s)
1176{
1177 if (!ignored_arg)
1178 ; /* default already initialized */
1179 else if (!strcmp(ignored_arg, "traditional"))
1180 s->show_ignored_mode = SHOW_TRADITIONAL_IGNORED;
1181 else if (!strcmp(ignored_arg, "no"))
1182 s->show_ignored_mode = SHOW_NO_IGNORED;
1183 else if (!strcmp(ignored_arg, "matching"))
1184 s->show_ignored_mode = SHOW_MATCHING_IGNORED;
1185 else
1186 die(_("Invalid ignored mode '%s'"), ignored_arg);
1187}
1188
1189static enum untracked_status_type parse_untracked_setting_name(const char *u)
1190{

Callers 1

cmd_statusFunction · 0.85

Calls 1

dieFunction · 0.50

Tested by

no test coverage detected