@@ -923,7 +923,6 @@ static void dump_quoted_path(const char *head,
923
923
924
924
static void show_combined_header (struct combine_diff_path * elem ,
925
925
int num_parent ,
926
- int dense ,
927
926
struct rev_info * rev ,
928
927
const char * line_prefix ,
929
928
int mode_differs ,
@@ -939,6 +938,7 @@ static void show_combined_header(struct combine_diff_path *elem,
939
938
int added = 0 ;
940
939
int deleted = 0 ;
941
940
int i ;
941
+ int dense = rev -> dense_combined_merges ;
942
942
943
943
if (rev -> loginfo && !rev -> no_commit_id )
944
944
show_log (rev );
@@ -1012,7 +1012,7 @@ static void show_combined_header(struct combine_diff_path *elem,
1012
1012
}
1013
1013
1014
1014
static void show_patch_diff (struct combine_diff_path * elem , int num_parent ,
1015
- int dense , int working_tree_file ,
1015
+ int working_tree_file ,
1016
1016
struct rev_info * rev )
1017
1017
{
1018
1018
struct diff_options * opt = & rev -> diffopt ;
@@ -1145,7 +1145,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
1145
1145
}
1146
1146
}
1147
1147
if (is_binary ) {
1148
- show_combined_header (elem , num_parent , dense , rev ,
1148
+ show_combined_header (elem , num_parent , rev ,
1149
1149
line_prefix , mode_differs , 0 );
1150
1150
printf ("Binary files differ\n" );
1151
1151
free (result );
@@ -1200,10 +1200,10 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
1200
1200
textconv , elem -> path , opt -> xdl_opts );
1201
1201
}
1202
1202
1203
- show_hunks = make_hunks (sline , cnt , num_parent , dense );
1203
+ show_hunks = make_hunks (sline , cnt , num_parent , rev -> dense_combined_merges );
1204
1204
1205
1205
if (show_hunks || mode_differs || working_tree_file ) {
1206
- show_combined_header (elem , num_parent , dense , rev ,
1206
+ show_combined_header (elem , num_parent , rev ,
1207
1207
line_prefix , mode_differs , 1 );
1208
1208
dump_sline (sline , line_prefix , cnt , num_parent ,
1209
1209
opt -> use_color , result_deleted );
@@ -1284,7 +1284,6 @@ static void show_raw_diff(struct combine_diff_path *p, int num_parent, struct re
1284
1284
*/
1285
1285
void show_combined_diff (struct combine_diff_path * p ,
1286
1286
int num_parent ,
1287
- int dense ,
1288
1287
struct rev_info * rev )
1289
1288
{
1290
1289
struct diff_options * opt = & rev -> diffopt ;
@@ -1294,7 +1293,7 @@ void show_combined_diff(struct combine_diff_path *p,
1294
1293
DIFF_FORMAT_NAME_STATUS ))
1295
1294
show_raw_diff (p , num_parent , rev );
1296
1295
else if (opt -> output_format & DIFF_FORMAT_PATCH )
1297
- show_patch_diff (p , num_parent , dense , 1 , rev );
1296
+ show_patch_diff (p , num_parent , 1 , rev );
1298
1297
}
1299
1298
1300
1299
static void free_combined_pair (struct diff_filepair * pair )
@@ -1454,7 +1453,6 @@ static struct combine_diff_path *find_paths_multitree(
1454
1453
1455
1454
void diff_tree_combined (const struct object_id * oid ,
1456
1455
const struct oid_array * parents ,
1457
- int dense ,
1458
1456
struct rev_info * rev )
1459
1457
{
1460
1458
struct diff_options * opt = & rev -> diffopt ;
@@ -1581,8 +1579,7 @@ void diff_tree_combined(const struct object_id *oid,
1581
1579
printf ("%s%c" , diff_line_prefix (opt ),
1582
1580
opt -> line_termination );
1583
1581
for (p = paths ; p ; p = p -> next )
1584
- show_patch_diff (p , num_parent , dense ,
1585
- 0 , rev );
1582
+ show_patch_diff (p , num_parent , 0 , rev );
1586
1583
}
1587
1584
}
1588
1585
@@ -1600,7 +1597,7 @@ void diff_tree_combined(const struct object_id *oid,
1600
1597
clear_pathspec (& diffopts .pathspec );
1601
1598
}
1602
1599
1603
- void diff_tree_combined_merge (const struct commit * commit , int dense ,
1600
+ void diff_tree_combined_merge (const struct commit * commit ,
1604
1601
struct rev_info * rev )
1605
1602
{
1606
1603
struct commit_list * parent = get_saved_parents (rev , commit );
@@ -1610,6 +1607,6 @@ void diff_tree_combined_merge(const struct commit *commit, int dense,
1610
1607
oid_array_append (& parents , & parent -> item -> object .oid );
1611
1608
parent = parent -> next ;
1612
1609
}
1613
- diff_tree_combined (& commit -> object .oid , & parents , dense , rev );
1610
+ diff_tree_combined (& commit -> object .oid , & parents , rev );
1614
1611
oid_array_clear (& parents );
1615
1612
}
0 commit comments