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

Function wt_longstatus_print_dirty_header

wt-status.c:248–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248static 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
266static void wt_longstatus_print_other_header(struct wt_status *s,
267 const char *what,

Callers 1

Calls 2

status_printf_lnFunction · 0.85
colorFunction · 0.70

Tested by

no test coverage detected