@@ -188,7 +188,7 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
188
188
} else {
189
189
status_printf_ln (s , c , _ (" (use \"git add/rm <file>...\" as appropriate to mark resolution)" ));
190
190
}
191
- status_printf_ln (s , c , "" );
191
+ status_printf_ln (s , c , "%s" , " " );
192
192
}
193
193
194
194
static void wt_status_print_cached_header (struct wt_status * s )
@@ -204,7 +204,7 @@ static void wt_status_print_cached_header(struct wt_status *s)
204
204
status_printf_ln (s , c , _ (" (use \"git reset %s <file>...\" to unstage)" ), s -> reference );
205
205
else
206
206
status_printf_ln (s , c , _ (" (use \"git rm --cached <file>...\" to unstage)" ));
207
- status_printf_ln (s , c , "" );
207
+ status_printf_ln (s , c , "%s" , " " );
208
208
}
209
209
210
210
static void wt_status_print_dirty_header (struct wt_status * s ,
@@ -223,7 +223,7 @@ static void wt_status_print_dirty_header(struct wt_status *s,
223
223
status_printf_ln (s , c , _ (" (use \"git checkout -- <file>...\" to discard changes in working directory)" ));
224
224
if (has_dirty_submodules )
225
225
status_printf_ln (s , c , _ (" (commit or discard the untracked or modified content in submodules)" ));
226
- status_printf_ln (s , c , "" );
226
+ status_printf_ln (s , c , "%s" , " " );
227
227
}
228
228
229
229
static void wt_status_print_other_header (struct wt_status * s ,
@@ -235,12 +235,12 @@ static void wt_status_print_other_header(struct wt_status *s,
235
235
if (!s -> hints )
236
236
return ;
237
237
status_printf_ln (s , c , _ (" (use \"git %s <file>...\" to include in what will be committed)" ), how );
238
- status_printf_ln (s , c , "" );
238
+ status_printf_ln (s , c , "%s" , " " );
239
239
}
240
240
241
241
static void wt_status_print_trailer (struct wt_status * s )
242
242
{
243
- status_printf_ln (s , color (WT_STATUS_HEADER , s ), "" );
243
+ status_printf_ln (s , color (WT_STATUS_HEADER , s ), "%s" , " " );
244
244
}
245
245
246
246
#define quote_path quote_path_relative
@@ -826,7 +826,7 @@ static void wt_status_print_other(struct wt_status *s,
826
826
string_list_clear (& output , 0 );
827
827
strbuf_release (& buf );
828
828
conclude :
829
- status_printf_ln (s , GIT_COLOR_NORMAL , "" );
829
+ status_printf_ln (s , GIT_COLOR_NORMAL , "%s" , " " );
830
830
}
831
831
832
832
void wt_status_truncate_message_at_cut_line (struct strbuf * buf )
@@ -913,7 +913,7 @@ static void wt_status_print_tracking(struct wt_status *s)
913
913
color_fprintf_ln (s -> fp , color (WT_STATUS_HEADER , s ), "%c" ,
914
914
comment_line_char );
915
915
else
916
- fprintf_ln ( s -> fp , "" );
916
+ fputs ( "" , s -> fp );
917
917
}
918
918
919
919
static int has_unmerged (struct wt_status * s )
@@ -1329,7 +1329,7 @@ void wt_status_print(struct wt_status *s)
1329
1329
on_what = _ ("Not currently on any branch." );
1330
1330
}
1331
1331
}
1332
- status_printf (s , color (WT_STATUS_HEADER , s ), "" );
1332
+ status_printf (s , color (WT_STATUS_HEADER , s ), "%s" , " " );
1333
1333
status_printf_more (s , branch_status_color , "%s" , on_what );
1334
1334
status_printf_more (s , branch_color , "%s\n" , branch_name );
1335
1335
if (!s -> is_initial )
@@ -1342,9 +1342,9 @@ void wt_status_print(struct wt_status *s)
1342
1342
free (state .detached_from );
1343
1343
1344
1344
if (s -> is_initial ) {
1345
- status_printf_ln (s , color (WT_STATUS_HEADER , s ), "" );
1345
+ status_printf_ln (s , color (WT_STATUS_HEADER , s ), "%s" , " " );
1346
1346
status_printf_ln (s , color (WT_STATUS_HEADER , s ), _ ("Initial commit" ));
1347
- status_printf_ln (s , color (WT_STATUS_HEADER , s ), "" );
1347
+ status_printf_ln (s , color (WT_STATUS_HEADER , s ), "%s" , " " );
1348
1348
}
1349
1349
1350
1350
wt_status_print_updated (s );
@@ -1361,7 +1361,7 @@ void wt_status_print(struct wt_status *s)
1361
1361
if (s -> show_ignored_files )
1362
1362
wt_status_print_other (s , & s -> ignored , _ ("Ignored files" ), "add -f" );
1363
1363
if (advice_status_u_option && 2000 < s -> untracked_in_ms ) {
1364
- status_printf_ln (s , GIT_COLOR_NORMAL , "" );
1364
+ status_printf_ln (s , GIT_COLOR_NORMAL , "%s" , " " );
1365
1365
status_printf_ln (s , GIT_COLOR_NORMAL ,
1366
1366
_ ("It took %.2f seconds to enumerate untracked files. 'status -uno'\n"
1367
1367
"may speed it up, but you have to be careful not to forget to add\n"
0 commit comments