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

Function wt_porcelain_v2_print

wt-status.c:2556–2591  ·  view source on GitHub ↗

* Print porcelain V2 status. * * [ ] * [ ]* * [ ]* * [ ]* * [ ]* * */

Source from the content-addressed store, hash-verified

2554 *
2555 */
2556static void wt_porcelain_v2_print(struct wt_status *s)
2557{
2558 struct wt_status_change_data *d;
2559 struct string_list_item *it;
2560 int i;
2561
2562 if (s->show_branch)
2563 wt_porcelain_v2_print_tracking(s);
2564
2565 if (s->show_stash)
2566 wt_porcelain_v2_print_stash(s);
2567
2568 for (i = 0; i < s->change.nr; i++) {
2569 it = &(s->change.items[i]);
2570 d = it->util;
2571 if (!d->stagemask)
2572 wt_porcelain_v2_print_changed_entry(it, s);
2573 }
2574
2575 for (i = 0; i < s->change.nr; i++) {
2576 it = &(s->change.items[i]);
2577 d = it->util;
2578 if (d->stagemask)
2579 wt_porcelain_v2_print_unmerged_entry(it, s);
2580 }
2581
2582 for (i = 0; i < s->untracked.nr; i++) {
2583 it = &(s->untracked.items[i]);
2584 wt_porcelain_v2_print_other(it, s, '?');
2585 }
2586
2587 for (i = 0; i < s->ignored.nr; i++) {
2588 it = &(s->ignored.items[i]);
2589 wt_porcelain_v2_print_other(it, s, '!');
2590 }
2591}
2592
2593void wt_status_print(struct wt_status *s)
2594{

Callers 1

wt_status_printFunction · 0.85

Tested by

no test coverage detected