| 246 | } |
| 247 | |
| 248 | static void wt_longstatus_print_dirty_header(struct wt_status *s, |
| 249 | int has_deleted, |
| 250 | int has_dirty_submodules) |
| 251 | { |
| 252 | const char *c = color(WT_STATUS_HEADER, s); |
| 253 | |
| 254 | status_printf_ln(s, c, _("Changes not staged for commit:")); |
| 255 | if (!s->hints) |
| 256 | return; |
| 257 | if (!has_deleted) |
| 258 | status_printf_ln(s, c, _(" (use \"git add <file>...\" to update what will be committed)")); |
| 259 | else |
| 260 | status_printf_ln(s, c, _(" (use \"git add/rm <file>...\" to update what will be committed)")); |
| 261 | status_printf_ln(s, c, _(" (use \"git restore <file>...\" to discard changes in working directory)")); |
| 262 | if (has_dirty_submodules) |
| 263 | status_printf_ln(s, c, _(" (commit or discard the untracked or modified content in submodules)")); |
| 264 | } |
| 265 | |
| 266 | static void wt_longstatus_print_other_header(struct wt_status *s, |
| 267 | const char *what, |
no test coverage detected