| 974 | } |
| 975 | |
| 976 | static void wt_longstatus_print_changed(struct wt_status *s) |
| 977 | { |
| 978 | int i, dirty_submodules; |
| 979 | int worktree_changes = wt_status_check_worktree_changes(s, &dirty_submodules); |
| 980 | |
| 981 | if (!worktree_changes) |
| 982 | return; |
| 983 | |
| 984 | wt_longstatus_print_dirty_header(s, worktree_changes < 0, dirty_submodules); |
| 985 | |
| 986 | for (i = 0; i < s->change.nr; i++) { |
| 987 | struct wt_status_change_data *d; |
| 988 | struct string_list_item *it; |
| 989 | it = &(s->change.items[i]); |
| 990 | d = it->util; |
| 991 | if (!d->worktree_status || |
| 992 | d->worktree_status == DIFF_STATUS_UNMERGED) |
| 993 | continue; |
| 994 | wt_longstatus_print_change_data(s, WT_STATUS_CHANGED, it); |
| 995 | } |
| 996 | wt_longstatus_print_trailer(s); |
| 997 | } |
| 998 | |
| 999 | static int stash_count_refs(const char *refname UNUSED, |
| 1000 | struct object_id *ooid UNUSED, |
no test coverage detected