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

Function parse_untracked_setting_name

builtin/commit.c:1189–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187}
1188
1189static enum untracked_status_type parse_untracked_setting_name(const char *u)
1190{
1191 /*
1192 * Please update $__git_untracked_file_modes in
1193 * git-completion.bash when you add new options
1194 */
1195 switch (git_parse_maybe_bool(u)) {
1196 case 0:
1197 u = "no";
1198 break;
1199 case 1:
1200 u = "normal";
1201 break;
1202 default:
1203 break;
1204 }
1205
1206 if (!strcmp(u, "no"))
1207 return SHOW_NO_UNTRACKED_FILES;
1208 else if (!strcmp(u, "normal"))
1209 return SHOW_NORMAL_UNTRACKED_FILES;
1210 else if (!strcmp(u, "all"))
1211 return SHOW_ALL_UNTRACKED_FILES;
1212 else
1213 return SHOW_UNTRACKED_FILES_ERROR;
1214}
1215
1216static void handle_untracked_files_arg(struct wt_status *s)
1217{

Callers 2

git_status_configFunction · 0.85

Calls 1

git_parse_maybe_boolFunction · 0.85

Tested by

no test coverage detected