@@ -48,6 +48,8 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
4848{
4949 const char * c = color (WT_STATUS_HEADER , s );
5050 color_fprintf_ln (s -> fp , c , "# Unmerged paths:" );
51+ if (!advice_status_hints )
52+ return ;
5153 if (!s -> is_initial )
5254 color_fprintf_ln (s -> fp , c , "# (use \"git reset %s <file>...\" to unstage)" , s -> reference );
5355 else
@@ -60,6 +62,8 @@ static void wt_status_print_cached_header(struct wt_status *s)
6062{
6163 const char * c = color (WT_STATUS_HEADER , s );
6264 color_fprintf_ln (s -> fp , c , "# Changes to be committed:" );
65+ if (!advice_status_hints )
66+ return ;
6367 if (!s -> is_initial ) {
6468 color_fprintf_ln (s -> fp , c , "# (use \"git reset %s <file>...\" to unstage)" , s -> reference );
6569 } else {
@@ -73,6 +77,8 @@ static void wt_status_print_dirty_header(struct wt_status *s,
7377{
7478 const char * c = color (WT_STATUS_HEADER , s );
7579 color_fprintf_ln (s -> fp , c , "# Changed but not updated:" );
80+ if (!advice_status_hints )
81+ return ;
7682 if (!has_deleted )
7783 color_fprintf_ln (s -> fp , c , "# (use \"git add <file>...\" to update what will be committed)" );
7884 else
@@ -85,6 +91,8 @@ static void wt_status_print_untracked_header(struct wt_status *s)
8591{
8692 const char * c = color (WT_STATUS_HEADER , s );
8793 color_fprintf_ln (s -> fp , c , "# Untracked files:" );
94+ if (!advice_status_hints )
95+ return ;
8896 color_fprintf_ln (s -> fp , c , "# (use \"git add <file>...\" to include in what will be committed)" );
8997 color_fprintf_ln (s -> fp , c , "#" );
9098}
0 commit comments