@@ -3312,14 +3312,14 @@ void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const
33123312 options -> b_prefix = b ;
33133313}
33143314
3315- struct userdiff_driver * get_textconv (struct index_state * istate ,
3315+ struct userdiff_driver * get_textconv (struct repository * r ,
33163316 struct diff_filespec * one )
33173317{
33183318 if (!DIFF_FILE_VALID (one ))
33193319 return NULL ;
33203320
3321- diff_filespec_load_driver (one , istate );
3322- return userdiff_get_textconv (one -> driver );
3321+ diff_filespec_load_driver (one , r -> index );
3322+ return userdiff_get_textconv (r , one -> driver );
33233323}
33243324
33253325static void builtin_diff (const char * name_a ,
@@ -3368,8 +3368,8 @@ static void builtin_diff(const char *name_a,
33683368 }
33693369
33703370 if (o -> flags .allow_textconv ) {
3371- textconv_one = get_textconv (o -> repo -> index , one );
3372- textconv_two = get_textconv (o -> repo -> index , two );
3371+ textconv_one = get_textconv (o -> repo , one );
3372+ textconv_two = get_textconv (o -> repo , two );
33733373 }
33743374
33753375 /* Never use a non-valid filename anywhere if at all possible */
@@ -6436,7 +6436,7 @@ int textconv_object(struct repository *r,
64366436
64376437 df = alloc_filespec (path );
64386438 fill_filespec (df , oid , oid_valid , mode );
6439- textconv = get_textconv (r -> index , df );
6439+ textconv = get_textconv (r , df );
64406440 if (!textconv ) {
64416441 free_filespec (df );
64426442 return 0 ;
0 commit comments