| 1187 | } |
| 1188 | |
| 1189 | static 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 | |
| 1216 | static void handle_untracked_files_arg(struct wt_status *s) |
| 1217 | { |
no test coverage detected