@@ -336,7 +336,7 @@ static void wt_longstatus_print_unmerged_data(struct wt_status *s,
336336 memset (padding , ' ' , label_width );
337337 }
338338
339- one = quote_path (it -> string , s -> prefix , & onebuf );
339+ one = quote_path (it -> string , s -> prefix , & onebuf , 0 );
340340 status_printf (s , color (WT_STATUS_HEADER , s ), "\t" );
341341
342342 how = wt_status_unmerged_status_string (d -> stagemask );
@@ -402,8 +402,8 @@ static void wt_longstatus_print_change_data(struct wt_status *s,
402402 if (d -> rename_status == status )
403403 one_name = d -> rename_source ;
404404
405- one = quote_path (one_name , s -> prefix , & onebuf );
406- two = quote_path (two_name , s -> prefix , & twobuf );
405+ one = quote_path (one_name , s -> prefix , & onebuf , 0 );
406+ two = quote_path (two_name , s -> prefix , & twobuf , 0 );
407407
408408 status_printf (s , color (WT_STATUS_HEADER , s ), "\t" );
409409 what = wt_status_diff_status_string (status );
@@ -964,7 +964,7 @@ static void wt_longstatus_print_other(struct wt_status *s,
964964 struct string_list_item * it ;
965965 const char * path ;
966966 it = & (l -> items [i ]);
967- path = quote_path (it -> string , s -> prefix , & buf );
967+ path = quote_path (it -> string , s -> prefix , & buf , 0 );
968968 if (column_active (s -> colopts )) {
969969 string_list_append (& output , path );
970970 continue ;
@@ -1848,7 +1848,7 @@ static void wt_shortstatus_unmerged(struct string_list_item *it,
18481848 } else {
18491849 struct strbuf onebuf = STRBUF_INIT ;
18501850 const char * one ;
1851- one = quote_path (it -> string , s -> prefix , & onebuf );
1851+ one = quote_path (it -> string , s -> prefix , & onebuf , 0 );
18521852 printf (" %s\n" , one );
18531853 strbuf_release (& onebuf );
18541854 }
@@ -1877,7 +1877,7 @@ static void wt_shortstatus_status(struct string_list_item *it,
18771877 const char * one ;
18781878
18791879 if (d -> rename_source ) {
1880- one = quote_path (d -> rename_source , s -> prefix , & onebuf );
1880+ one = quote_path (d -> rename_source , s -> prefix , & onebuf , 0 );
18811881 if (* one != '"' && strchr (one , ' ' ) != NULL ) {
18821882 putchar ('"' );
18831883 strbuf_addch (& onebuf , '"' );
@@ -1886,7 +1886,7 @@ static void wt_shortstatus_status(struct string_list_item *it,
18861886 printf ("%s -> " , one );
18871887 strbuf_release (& onebuf );
18881888 }
1889- one = quote_path (it -> string , s -> prefix , & onebuf );
1889+ one = quote_path (it -> string , s -> prefix , & onebuf , 0 );
18901890 if (* one != '"' && strchr (one , ' ' ) != NULL ) {
18911891 putchar ('"' );
18921892 strbuf_addch (& onebuf , '"' );
@@ -1905,7 +1905,7 @@ static void wt_shortstatus_other(struct string_list_item *it,
19051905 } else {
19061906 struct strbuf onebuf = STRBUF_INIT ;
19071907 const char * one ;
1908- one = quote_path (it -> string , s -> prefix , & onebuf );
1908+ one = quote_path (it -> string , s -> prefix , & onebuf , 0 );
19091909 color_fprintf (s -> fp , color (WT_STATUS_UNTRACKED , s ), "%s" , sign );
19101910 printf (" %s\n" , one );
19111911 strbuf_release (& onebuf );
@@ -2222,9 +2222,9 @@ static void wt_porcelain_v2_print_changed_entry(
22222222 */
22232223 sep_char = '\t' ;
22242224 eol_char = '\n' ;
2225- path = quote_path (it -> string , s -> prefix , & buf );
2225+ path = quote_path (it -> string , s -> prefix , & buf , 0 );
22262226 if (d -> rename_source )
2227- path_from = quote_path (d -> rename_source , s -> prefix , & buf_from );
2227+ path_from = quote_path (d -> rename_source , s -> prefix , & buf_from , 0 );
22282228 }
22292229
22302230 if (path_from )
@@ -2310,7 +2310,7 @@ static void wt_porcelain_v2_print_unmerged_entry(
23102310 if (s -> null_termination )
23112311 path_index = it -> string ;
23122312 else
2313- path_index = quote_path (it -> string , s -> prefix , & buf_index );
2313+ path_index = quote_path (it -> string , s -> prefix , & buf_index , 0 );
23142314
23152315 fprintf (s -> fp , "%c %s %s %06o %06o %06o %06o %s %s %s %s%c" ,
23162316 unmerged_prefix , key , submodule_token ,
@@ -2343,7 +2343,7 @@ static void wt_porcelain_v2_print_other(
23432343 path = it -> string ;
23442344 eol_char = '\0' ;
23452345 } else {
2346- path = quote_path (it -> string , s -> prefix , & buf );
2346+ path = quote_path (it -> string , s -> prefix , & buf , 0 );
23472347 eol_char = '\n' ;
23482348 }
23492349
0 commit comments