@@ -139,7 +139,7 @@ void wt_status_prepare(struct wt_status *s)
139
139
s -> display_comment_prefix = 0 ;
140
140
}
141
141
142
- static void wt_status_print_unmerged_header (struct wt_status * s )
142
+ static void wt_longstatus_print_unmerged_header (struct wt_status * s )
143
143
{
144
144
int i ;
145
145
int del_mod_conflict = 0 ;
@@ -191,7 +191,7 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
191
191
status_printf_ln (s , c , "%s" , "" );
192
192
}
193
193
194
- static void wt_status_print_cached_header (struct wt_status * s )
194
+ static void wt_longstatus_print_cached_header (struct wt_status * s )
195
195
{
196
196
const char * c = color (WT_STATUS_HEADER , s );
197
197
@@ -207,9 +207,9 @@ static void wt_status_print_cached_header(struct wt_status *s)
207
207
status_printf_ln (s , c , "%s" , "" );
208
208
}
209
209
210
- static void wt_status_print_dirty_header (struct wt_status * s ,
211
- int has_deleted ,
212
- int has_dirty_submodules )
210
+ static void wt_longstatus_print_dirty_header (struct wt_status * s ,
211
+ int has_deleted ,
212
+ int has_dirty_submodules )
213
213
{
214
214
const char * c = color (WT_STATUS_HEADER , s );
215
215
@@ -226,9 +226,9 @@ static void wt_status_print_dirty_header(struct wt_status *s,
226
226
status_printf_ln (s , c , "%s" , "" );
227
227
}
228
228
229
- static void wt_status_print_other_header (struct wt_status * s ,
230
- const char * what ,
231
- const char * how )
229
+ static void wt_longstatus_print_other_header (struct wt_status * s ,
230
+ const char * what ,
231
+ const char * how )
232
232
{
233
233
const char * c = color (WT_STATUS_HEADER , s );
234
234
status_printf_ln (s , c , "%s:" , what );
@@ -238,7 +238,7 @@ static void wt_status_print_other_header(struct wt_status *s,
238
238
status_printf_ln (s , c , "%s" , "" );
239
239
}
240
240
241
- static void wt_status_print_trailer (struct wt_status * s )
241
+ static void wt_longstatus_print_trailer (struct wt_status * s )
242
242
{
243
243
status_printf_ln (s , color (WT_STATUS_HEADER , s ), "%s" , "" );
244
244
}
@@ -304,8 +304,8 @@ static int maxwidth(const char *(*label)(int), int minval, int maxval)
304
304
return result ;
305
305
}
306
306
307
- static void wt_status_print_unmerged_data (struct wt_status * s ,
308
- struct string_list_item * it )
307
+ static void wt_longstatus_print_unmerged_data (struct wt_status * s ,
308
+ struct string_list_item * it )
309
309
{
310
310
const char * c = color (WT_STATUS_UNMERGED , s );
311
311
struct wt_status_change_data * d = it -> util ;
@@ -331,9 +331,9 @@ static void wt_status_print_unmerged_data(struct wt_status *s,
331
331
strbuf_release (& onebuf );
332
332
}
333
333
334
- static void wt_status_print_change_data (struct wt_status * s ,
335
- int change_type ,
336
- struct string_list_item * it )
334
+ static void wt_longstatus_print_change_data (struct wt_status * s ,
335
+ int change_type ,
336
+ struct string_list_item * it )
337
337
{
338
338
struct wt_status_change_data * d = it -> util ;
339
339
const char * c = color (change_type , s );
@@ -378,7 +378,7 @@ static void wt_status_print_change_data(struct wt_status *s,
378
378
status = d -> worktree_status ;
379
379
break ;
380
380
default :
381
- die ("BUG: unhandled change_type %d in wt_status_print_change_data " ,
381
+ die ("BUG: unhandled change_type %d in wt_longstatus_print_change_data " ,
382
382
change_type );
383
383
}
384
384
@@ -626,7 +626,7 @@ void wt_status_collect(struct wt_status *s)
626
626
wt_status_collect_untracked (s );
627
627
}
628
628
629
- static void wt_status_print_unmerged (struct wt_status * s )
629
+ static void wt_longstatus_print_unmerged (struct wt_status * s )
630
630
{
631
631
int shown_header = 0 ;
632
632
int i ;
@@ -639,17 +639,17 @@ static void wt_status_print_unmerged(struct wt_status *s)
639
639
if (!d -> stagemask )
640
640
continue ;
641
641
if (!shown_header ) {
642
- wt_status_print_unmerged_header (s );
642
+ wt_longstatus_print_unmerged_header (s );
643
643
shown_header = 1 ;
644
644
}
645
- wt_status_print_unmerged_data (s , it );
645
+ wt_longstatus_print_unmerged_data (s , it );
646
646
}
647
647
if (shown_header )
648
- wt_status_print_trailer (s );
648
+ wt_longstatus_print_trailer (s );
649
649
650
650
}
651
651
652
- static void wt_status_print_updated (struct wt_status * s )
652
+ static void wt_longstatus_print_updated (struct wt_status * s )
653
653
{
654
654
int shown_header = 0 ;
655
655
int i ;
@@ -663,14 +663,14 @@ static void wt_status_print_updated(struct wt_status *s)
663
663
d -> index_status == DIFF_STATUS_UNMERGED )
664
664
continue ;
665
665
if (!shown_header ) {
666
- wt_status_print_cached_header (s );
666
+ wt_longstatus_print_cached_header (s );
667
667
s -> commitable = 1 ;
668
668
shown_header = 1 ;
669
669
}
670
- wt_status_print_change_data (s , WT_STATUS_UPDATED , it );
670
+ wt_longstatus_print_change_data (s , WT_STATUS_UPDATED , it );
671
671
}
672
672
if (shown_header )
673
- wt_status_print_trailer (s );
673
+ wt_longstatus_print_trailer (s );
674
674
}
675
675
676
676
/*
@@ -702,15 +702,15 @@ static int wt_status_check_worktree_changes(struct wt_status *s,
702
702
return changes ;
703
703
}
704
704
705
- static void wt_status_print_changed (struct wt_status * s )
705
+ static void wt_longstatus_print_changed (struct wt_status * s )
706
706
{
707
707
int i , dirty_submodules ;
708
708
int worktree_changes = wt_status_check_worktree_changes (s , & dirty_submodules );
709
709
710
710
if (!worktree_changes )
711
711
return ;
712
712
713
- wt_status_print_dirty_header (s , worktree_changes < 0 , dirty_submodules );
713
+ wt_longstatus_print_dirty_header (s , worktree_changes < 0 , dirty_submodules );
714
714
715
715
for (i = 0 ; i < s -> change .nr ; i ++ ) {
716
716
struct wt_status_change_data * d ;
@@ -720,12 +720,12 @@ static void wt_status_print_changed(struct wt_status *s)
720
720
if (!d -> worktree_status ||
721
721
d -> worktree_status == DIFF_STATUS_UNMERGED )
722
722
continue ;
723
- wt_status_print_change_data (s , WT_STATUS_CHANGED , it );
723
+ wt_longstatus_print_change_data (s , WT_STATUS_CHANGED , it );
724
724
}
725
- wt_status_print_trailer (s );
725
+ wt_longstatus_print_trailer (s );
726
726
}
727
727
728
- static void wt_status_print_submodule_summary (struct wt_status * s , int uncommitted )
728
+ static void wt_longstatus_print_submodule_summary (struct wt_status * s , int uncommitted )
729
729
{
730
730
struct child_process sm_summary = CHILD_PROCESS_INIT ;
731
731
struct strbuf cmd_stdout = STRBUF_INIT ;
@@ -771,10 +771,10 @@ static void wt_status_print_submodule_summary(struct wt_status *s, int uncommitt
771
771
strbuf_release (& summary );
772
772
}
773
773
774
- static void wt_status_print_other (struct wt_status * s ,
775
- struct string_list * l ,
776
- const char * what ,
777
- const char * how )
774
+ static void wt_longstatus_print_other (struct wt_status * s ,
775
+ struct string_list * l ,
776
+ const char * what ,
777
+ const char * how )
778
778
{
779
779
int i ;
780
780
struct strbuf buf = STRBUF_INIT ;
@@ -784,7 +784,7 @@ static void wt_status_print_other(struct wt_status *s,
784
784
if (!l -> nr )
785
785
return ;
786
786
787
- wt_status_print_other_header (s , what , how );
787
+ wt_longstatus_print_other_header (s , what , how );
788
788
789
789
for (i = 0 ; i < l -> nr ; i ++ ) {
790
790
struct string_list_item * it ;
@@ -844,7 +844,7 @@ void wt_status_add_cut_line(FILE *fp)
844
844
strbuf_release (& buf );
845
845
}
846
846
847
- static void wt_status_print_verbose (struct wt_status * s )
847
+ static void wt_longstatus_print_verbose (struct wt_status * s )
848
848
{
849
849
struct rev_info rev ;
850
850
struct setup_revision_opt opt ;
@@ -877,7 +877,7 @@ static void wt_status_print_verbose(struct wt_status *s)
877
877
if (s -> verbose > 1 && s -> commitable ) {
878
878
/* print_updated() printed a header, so do we */
879
879
if (s -> fp != stdout )
880
- wt_status_print_trailer (s );
880
+ wt_longstatus_print_trailer (s );
881
881
status_printf_ln (s , c , _ ("Changes to be committed:" ));
882
882
rev .diffopt .a_prefix = "c/" ;
883
883
rev .diffopt .b_prefix = "i/" ;
@@ -895,7 +895,7 @@ static void wt_status_print_verbose(struct wt_status *s)
895
895
}
896
896
}
897
897
898
- static void wt_status_print_tracking (struct wt_status * s )
898
+ static void wt_longstatus_print_tracking (struct wt_status * s )
899
899
{
900
900
struct strbuf sb = STRBUF_INIT ;
901
901
const char * cp , * ep , * branch_name ;
@@ -958,7 +958,7 @@ static void show_merge_in_progress(struct wt_status *s,
958
958
status_printf_ln (s , color ,
959
959
_ (" (use \"git commit\" to conclude merge)" ));
960
960
}
961
- wt_status_print_trailer (s );
961
+ wt_longstatus_print_trailer (s );
962
962
}
963
963
964
964
static void show_am_in_progress (struct wt_status * s ,
@@ -979,7 +979,7 @@ static void show_am_in_progress(struct wt_status *s,
979
979
status_printf_ln (s , color ,
980
980
_ (" (use \"git am --abort\" to restore the original branch)" ));
981
981
}
982
- wt_status_print_trailer (s );
982
+ wt_longstatus_print_trailer (s );
983
983
}
984
984
985
985
static char * read_line_from_git_path (const char * filename )
@@ -1203,7 +1203,7 @@ static void show_rebase_in_progress(struct wt_status *s,
1203
1203
_ (" (use \"git rebase --continue\" once you are satisfied with your changes)" ));
1204
1204
}
1205
1205
}
1206
- wt_status_print_trailer (s );
1206
+ wt_longstatus_print_trailer (s );
1207
1207
}
1208
1208
1209
1209
static void show_cherry_pick_in_progress (struct wt_status * s ,
@@ -1222,7 +1222,7 @@ static void show_cherry_pick_in_progress(struct wt_status *s,
1222
1222
status_printf_ln (s , color ,
1223
1223
_ (" (use \"git cherry-pick --abort\" to cancel the cherry-pick operation)" ));
1224
1224
}
1225
- wt_status_print_trailer (s );
1225
+ wt_longstatus_print_trailer (s );
1226
1226
}
1227
1227
1228
1228
static void show_revert_in_progress (struct wt_status * s ,
@@ -1241,7 +1241,7 @@ static void show_revert_in_progress(struct wt_status *s,
1241
1241
status_printf_ln (s , color ,
1242
1242
_ (" (use \"git revert --abort\" to cancel the revert operation)" ));
1243
1243
}
1244
- wt_status_print_trailer (s );
1244
+ wt_longstatus_print_trailer (s );
1245
1245
}
1246
1246
1247
1247
static void show_bisect_in_progress (struct wt_status * s ,
@@ -1258,7 +1258,7 @@ static void show_bisect_in_progress(struct wt_status *s,
1258
1258
if (s -> hints )
1259
1259
status_printf_ln (s , color ,
1260
1260
_ (" (use \"git bisect reset\" to get back to the original branch)" ));
1261
- wt_status_print_trailer (s );
1261
+ wt_longstatus_print_trailer (s );
1262
1262
}
1263
1263
1264
1264
/*
@@ -1428,8 +1428,8 @@ void wt_status_get_state(struct wt_status_state *state,
1428
1428
wt_status_get_detached_from (state );
1429
1429
}
1430
1430
1431
- static void wt_status_print_state (struct wt_status * s ,
1432
- struct wt_status_state * state )
1431
+ static void wt_longstatus_print_state (struct wt_status * s ,
1432
+ struct wt_status_state * state )
1433
1433
{
1434
1434
const char * state_color = color (WT_STATUS_HEADER , s );
1435
1435
if (state -> merge_in_progress )
@@ -1446,7 +1446,7 @@ static void wt_status_print_state(struct wt_status *s,
1446
1446
show_bisect_in_progress (s , state , state_color );
1447
1447
}
1448
1448
1449
- void wt_status_print (struct wt_status * s )
1449
+ void wt_longstatus_print (struct wt_status * s )
1450
1450
{
1451
1451
const char * branch_color = color (WT_STATUS_ONBRANCH , s );
1452
1452
const char * branch_status_color = color (WT_STATUS_HEADER , s );
@@ -1483,10 +1483,10 @@ void wt_status_print(struct wt_status *s)
1483
1483
status_printf_more (s , branch_status_color , "%s" , on_what );
1484
1484
status_printf_more (s , branch_color , "%s\n" , branch_name );
1485
1485
if (!s -> is_initial )
1486
- wt_status_print_tracking (s );
1486
+ wt_longstatus_print_tracking (s );
1487
1487
}
1488
1488
1489
- wt_status_print_state (s , & state );
1489
+ wt_longstatus_print_state (s , & state );
1490
1490
free (state .branch );
1491
1491
free (state .onto );
1492
1492
free (state .detached_from );
@@ -1497,19 +1497,19 @@ void wt_status_print(struct wt_status *s)
1497
1497
status_printf_ln (s , color (WT_STATUS_HEADER , s ), "%s" , "" );
1498
1498
}
1499
1499
1500
- wt_status_print_updated (s );
1501
- wt_status_print_unmerged (s );
1502
- wt_status_print_changed (s );
1500
+ wt_longstatus_print_updated (s );
1501
+ wt_longstatus_print_unmerged (s );
1502
+ wt_longstatus_print_changed (s );
1503
1503
if (s -> submodule_summary &&
1504
1504
(!s -> ignore_submodule_arg ||
1505
1505
strcmp (s -> ignore_submodule_arg , "all" ))) {
1506
- wt_status_print_submodule_summary (s , 0 ); /* staged */
1507
- wt_status_print_submodule_summary (s , 1 ); /* unstaged */
1506
+ wt_longstatus_print_submodule_summary (s , 0 ); /* staged */
1507
+ wt_longstatus_print_submodule_summary (s , 1 ); /* unstaged */
1508
1508
}
1509
1509
if (s -> show_untracked_files ) {
1510
- wt_status_print_other (s , & s -> untracked , _ ("Untracked files" ), "add" );
1510
+ wt_longstatus_print_other (s , & s -> untracked , _ ("Untracked files" ), "add" );
1511
1511
if (s -> show_ignored_files )
1512
- wt_status_print_other (s , & s -> ignored , _ ("Ignored files" ), "add -f" );
1512
+ wt_longstatus_print_other (s , & s -> ignored , _ ("Ignored files" ), "add -f" );
1513
1513
if (advice_status_u_option && 2000 < s -> untracked_in_ms ) {
1514
1514
status_printf_ln (s , GIT_COLOR_NORMAL , "%s" , "" );
1515
1515
status_printf_ln (s , GIT_COLOR_NORMAL ,
@@ -1524,7 +1524,7 @@ void wt_status_print(struct wt_status *s)
1524
1524
? _ (" (use -u option to show untracked files)" ) : "" );
1525
1525
1526
1526
if (s -> verbose )
1527
- wt_status_print_verbose (s );
1527
+ wt_longstatus_print_verbose (s );
1528
1528
if (!s -> commitable ) {
1529
1529
if (s -> amend )
1530
1530
status_printf_ln (s , GIT_COLOR_NORMAL , _ ("No changes" ));
0 commit comments