@@ -749,29 +749,16 @@ static int has_unmerged(struct wt_status *s)
749
749
750
750
void wt_status_collect (struct wt_status * s )
751
751
{
752
- trace2_region_enter ("status" , "worktrees" , the_repository );
753
752
wt_status_collect_changes_worktree (s );
754
- trace2_region_leave ("status" , "worktrees" , the_repository );
755
-
756
- if (s -> is_initial ) {
757
- trace2_region_enter ("status" , "initial" , the_repository );
753
+ if (s -> is_initial )
758
754
wt_status_collect_changes_initial (s );
759
- trace2_region_leave ("status" , "initial" , the_repository );
760
- } else {
761
- trace2_region_enter ("status" , "index" , the_repository );
755
+ else
762
756
wt_status_collect_changes_index (s );
763
- trace2_region_leave ("status" , "index" , the_repository );
764
- }
765
-
766
- trace2_region_enter ("status" , "untracked" , the_repository );
767
757
wt_status_collect_untracked (s );
768
- trace2_region_leave ("status" , "untracked" , the_repository );
769
758
770
- trace2_region_enter ("status" , "committable" , the_repository );
771
759
wt_status_get_state (& s -> state , s -> branch && !strcmp (s -> branch , "HEAD" ));
772
760
if (s -> state .merge_in_progress && !has_unmerged (s ))
773
761
s -> committable = 1 ;
774
- trace2_region_leave ("status" , "committable" , the_repository );
775
762
}
776
763
777
764
void wt_status_collect_free_buffers (struct wt_status * s )
0 commit comments