@@ -165,7 +165,7 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
165
165
}
166
166
}
167
167
168
- if (!advice_status_hints )
168
+ if (!s -> hints )
169
169
return ;
170
170
if (s -> whence != FROM_COMMIT )
171
171
;
@@ -192,7 +192,7 @@ static void wt_status_print_cached_header(struct wt_status *s)
192
192
const char * c = color (WT_STATUS_HEADER , s );
193
193
194
194
status_printf_ln (s , c , _ ("Changes to be committed:" ));
195
- if (!advice_status_hints )
195
+ if (!s -> hints )
196
196
return ;
197
197
if (s -> whence != FROM_COMMIT )
198
198
; /* NEEDSWORK: use "git reset --unresolve"??? */
@@ -210,7 +210,7 @@ static void wt_status_print_dirty_header(struct wt_status *s,
210
210
const char * c = color (WT_STATUS_HEADER , s );
211
211
212
212
status_printf_ln (s , c , _ ("Changes not staged for commit:" ));
213
- if (!advice_status_hints )
213
+ if (!s -> hints )
214
214
return ;
215
215
if (!has_deleted )
216
216
status_printf_ln (s , c , _ (" (use \"git add <file>...\" to update what will be committed)" ));
@@ -228,7 +228,7 @@ static void wt_status_print_other_header(struct wt_status *s,
228
228
{
229
229
const char * c = color (WT_STATUS_HEADER , s );
230
230
status_printf_ln (s , c , "%s:" , what );
231
- if (!advice_status_hints )
231
+ if (!s -> hints )
232
232
return ;
233
233
status_printf_ln (s , c , _ (" (use \"git %s <file>...\" to include in what will be committed)" ), how );
234
234
status_printf_ln (s , c , "" );
@@ -846,13 +846,13 @@ static void show_merge_in_progress(struct wt_status *s,
846
846
{
847
847
if (has_unmerged (s )) {
848
848
status_printf_ln (s , color , _ ("You have unmerged paths." ));
849
- if (advice_status_hints )
849
+ if (s -> hints )
850
850
status_printf_ln (s , color ,
851
851
_ (" (fix conflicts and run \"git commit\")" ));
852
852
} else {
853
853
status_printf_ln (s , color ,
854
854
_ ("All conflicts fixed but you are still merging." ));
855
- if (advice_status_hints )
855
+ if (s -> hints )
856
856
status_printf_ln (s , color ,
857
857
_ (" (use \"git commit\" to conclude merge)" ));
858
858
}
@@ -868,7 +868,7 @@ static void show_am_in_progress(struct wt_status *s,
868
868
if (state -> am_empty_patch )
869
869
status_printf_ln (s , color ,
870
870
_ ("The current patch is empty." ));
871
- if (advice_status_hints ) {
871
+ if (s -> hints ) {
872
872
if (!state -> am_empty_patch )
873
873
status_printf_ln (s , color ,
874
874
_ (" (fix conflicts and then run \"git am --continue\")" ));
@@ -941,7 +941,7 @@ static void show_rebase_in_progress(struct wt_status *s,
941
941
else
942
942
status_printf_ln (s , color ,
943
943
_ ("You are currently rebasing." ));
944
- if (advice_status_hints ) {
944
+ if (s -> hints ) {
945
945
status_printf_ln (s , color ,
946
946
_ (" (fix conflicts and then run \"git rebase --continue\")" ));
947
947
status_printf_ln (s , color ,
@@ -958,7 +958,7 @@ static void show_rebase_in_progress(struct wt_status *s,
958
958
else
959
959
status_printf_ln (s , color ,
960
960
_ ("You are currently rebasing." ));
961
- if (advice_status_hints )
961
+ if (s -> hints )
962
962
status_printf_ln (s , color ,
963
963
_ (" (all conflicts fixed: run \"git rebase --continue\")" ));
964
964
} else if (split_commit_in_progress (s )) {
@@ -970,7 +970,7 @@ static void show_rebase_in_progress(struct wt_status *s,
970
970
else
971
971
status_printf_ln (s , color ,
972
972
_ ("You are currently splitting a commit during a rebase." ));
973
- if (advice_status_hints )
973
+ if (s -> hints )
974
974
status_printf_ln (s , color ,
975
975
_ (" (Once your working directory is clean, run \"git rebase --continue\")" ));
976
976
} else {
@@ -982,7 +982,7 @@ static void show_rebase_in_progress(struct wt_status *s,
982
982
else
983
983
status_printf_ln (s , color ,
984
984
_ ("You are currently editing a commit during a rebase." ));
985
- if (advice_status_hints && !s -> amend ) {
985
+ if (s -> hints && !s -> amend ) {
986
986
status_printf_ln (s , color ,
987
987
_ (" (use \"git commit --amend\" to amend the current commit)" ));
988
988
status_printf_ln (s , color ,
@@ -997,7 +997,7 @@ static void show_cherry_pick_in_progress(struct wt_status *s,
997
997
const char * color )
998
998
{
999
999
status_printf_ln (s , color , _ ("You are currently cherry-picking." ));
1000
- if (advice_status_hints ) {
1000
+ if (s -> hints ) {
1001
1001
if (has_unmerged (s ))
1002
1002
status_printf_ln (s , color ,
1003
1003
_ (" (fix conflicts and run \"git cherry-pick --continue\")" ));
@@ -1016,7 +1016,7 @@ static void show_revert_in_progress(struct wt_status *s,
1016
1016
{
1017
1017
status_printf_ln (s , color , _ ("You are currently reverting commit %s." ),
1018
1018
find_unique_abbrev (state -> revert_head_sha1 , DEFAULT_ABBREV ));
1019
- if (advice_status_hints ) {
1019
+ if (s -> hints ) {
1020
1020
if (has_unmerged (s ))
1021
1021
status_printf_ln (s , color ,
1022
1022
_ (" (fix conflicts and run \"git revert --continue\")" ));
@@ -1040,7 +1040,7 @@ static void show_bisect_in_progress(struct wt_status *s,
1040
1040
else
1041
1041
status_printf_ln (s , color ,
1042
1042
_ ("You are currently bisecting." ));
1043
- if (advice_status_hints )
1043
+ if (s -> hints )
1044
1044
status_printf_ln (s , color ,
1045
1045
_ (" (use \"git bisect reset\" to get back to the original branch)" ));
1046
1046
wt_status_print_trailer (s );
@@ -1278,7 +1278,7 @@ void wt_status_print(struct wt_status *s)
1278
1278
}
1279
1279
} else if (s -> commitable )
1280
1280
status_printf_ln (s , GIT_COLOR_NORMAL , _ ("Untracked files not listed%s" ),
1281
- advice_status_hints
1281
+ s -> hints
1282
1282
? _ (" (use -u option to show untracked files)" ) : "" );
1283
1283
1284
1284
if (s -> verbose )
@@ -1289,25 +1289,25 @@ void wt_status_print(struct wt_status *s)
1289
1289
else if (s -> nowarn )
1290
1290
; /* nothing */
1291
1291
else if (s -> workdir_dirty ) {
1292
- if (advice_status_hints )
1292
+ if (s -> hints )
1293
1293
printf (_ ("no changes added to commit "
1294
1294
"(use \"git add\" and/or \"git commit -a\")\n" ));
1295
1295
else
1296
1296
printf (_ ("no changes added to commit\n" ));
1297
1297
} else if (s -> untracked .nr ) {
1298
- if (advice_status_hints )
1298
+ if (s -> hints )
1299
1299
printf (_ ("nothing added to commit but untracked files "
1300
1300
"present (use \"git add\" to track)\n" ));
1301
1301
else
1302
1302
printf (_ ("nothing added to commit but untracked files present\n" ));
1303
1303
} else if (s -> is_initial ) {
1304
- if (advice_status_hints )
1304
+ if (s -> hints )
1305
1305
printf (_ ("nothing to commit (create/copy files "
1306
1306
"and use \"git add\" to track)\n" ));
1307
1307
else
1308
1308
printf (_ ("nothing to commit\n" ));
1309
1309
} else if (!s -> show_untracked_files ) {
1310
- if (advice_status_hints )
1310
+ if (s -> hints )
1311
1311
printf (_ ("nothing to commit (use -u to show untracked files)\n" ));
1312
1312
else
1313
1313
printf (_ ("nothing to commit\n" ));
0 commit comments