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

Function wt_status_print

wt-status.c:2593–2622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2591}
2592
2593void wt_status_print(struct wt_status *s)
2594{
2595 trace2_data_intmax("status", s->repo, "count/changed", s->change.nr);
2596 trace2_data_intmax("status", s->repo, "count/untracked",
2597 s->untracked.nr);
2598 trace2_data_intmax("status", s->repo, "count/ignored", s->ignored.nr);
2599
2600 trace2_region_enter("status", "print", s->repo);
2601
2602 switch (s->status_format) {
2603 case STATUS_FORMAT_SHORT:
2604 wt_shortstatus_print(s);
2605 break;
2606 case STATUS_FORMAT_PORCELAIN:
2607 wt_porcelain_print(s);
2608 break;
2609 case STATUS_FORMAT_PORCELAIN_V2:
2610 wt_porcelain_v2_print(s);
2611 break;
2612 case STATUS_FORMAT_UNSPECIFIED:
2613 BUG("finalize_deferred_config() should have been called");
2614 break;
2615 case STATUS_FORMAT_NONE:
2616 case STATUS_FORMAT_LONG:
2617 wt_longstatus_print(s);
2618 break;
2619 }
2620
2621 trace2_region_leave("status", "print", s->repo);
2622}
2623
2624/**
2625 * Returns 1 if there are unstaged changes, 0 otherwise.

Callers 3

run_statusFunction · 0.85
cmd_statusFunction · 0.85
fill_commit_messageFunction · 0.85

Calls 4

wt_shortstatus_printFunction · 0.85
wt_porcelain_printFunction · 0.85
wt_porcelain_v2_printFunction · 0.85
wt_longstatus_printFunction · 0.85

Tested by

no test coverage detected