@@ -134,15 +134,14 @@ struct progress_info {
134
134
int blamed_lines ;
135
135
};
136
136
137
- static int diff_hunks (mmfile_t * file_a , mmfile_t * file_b , long ctxlen ,
137
+ static int diff_hunks (mmfile_t * file_a , mmfile_t * file_b ,
138
138
xdl_emit_hunk_consume_func_t hunk_func , void * cb_data )
139
139
{
140
140
xpparam_t xpp = {0 };
141
141
xdemitconf_t xecfg = {0 };
142
142
xdemitcb_t ecb = {NULL };
143
143
144
144
xpp .flags = xdl_opts ;
145
- xecfg .ctxlen = ctxlen ;
146
145
xecfg .hunk_func = hunk_func ;
147
146
ecb .priv = cb_data ;
148
147
return xdi_diff (file_a , file_b , & xpp , & xecfg , & ecb );
@@ -980,7 +979,7 @@ static void pass_blame_to_parent(struct scoreboard *sb,
980
979
fill_origin_blob (& sb -> revs -> diffopt , target , & file_o );
981
980
num_get_patch ++ ;
982
981
983
- if (diff_hunks (& file_p , & file_o , 0 , blame_chunk_cb , & d ))
982
+ if (diff_hunks (& file_p , & file_o , blame_chunk_cb , & d ))
984
983
die ("unable to generate diff (%s -> %s)" ,
985
984
oid_to_hex (& parent -> commit -> object .oid ),
986
985
oid_to_hex (& target -> commit -> object .oid ));
@@ -1129,7 +1128,7 @@ static void find_copy_in_blob(struct scoreboard *sb,
1129
1128
* file_p partially may match that image.
1130
1129
*/
1131
1130
memset (split , 0 , sizeof (struct blame_entry [3 ]));
1132
- if (diff_hunks (file_p , & file_o , 1 , handle_split_cb , & d ))
1131
+ if (diff_hunks (file_p , & file_o , handle_split_cb , & d ))
1133
1132
die ("unable to generate diff (%s)" ,
1134
1133
oid_to_hex (& parent -> commit -> object .oid ));
1135
1134
/* remainder, if any, all match the preimage */
0 commit comments