@@ -239,6 +239,8 @@ static int checkout_merged(int pos, const struct checkout *state, int *nr_checko
239
239
mmbuffer_t result_buf ;
240
240
struct object_id threeway [3 ];
241
241
unsigned mode = 0 ;
242
+ struct ll_merge_options ll_opts ;
243
+ int renormalize = 0 ;
242
244
243
245
memset (threeway , 0 , sizeof (threeway ));
244
246
while (pos < active_nr ) {
@@ -259,13 +261,12 @@ static int checkout_merged(int pos, const struct checkout *state, int *nr_checko
259
261
read_mmblob (& ours , & threeway [1 ]);
260
262
read_mmblob (& theirs , & threeway [2 ]);
261
263
262
- /*
263
- * NEEDSWORK: re-create conflicts from merges with
264
- * merge.renormalize set, too
265
- */
264
+ memset (& ll_opts , 0 , sizeof (ll_opts ));
265
+ git_config_get_bool ("merge.renormalize" , & renormalize );
266
+ ll_opts .renormalize = renormalize ;
266
267
status = ll_merge (& result_buf , path , & ancestor , "base" ,
267
268
& ours , "ours" , & theirs , "theirs" ,
268
- state -> istate , NULL );
269
+ state -> istate , & ll_opts );
269
270
free (ancestor .ptr );
270
271
free (ours .ptr );
271
272
free (theirs .ptr );
0 commit comments