@@ -1372,7 +1372,7 @@ static void write_commit_patch(const struct am_state *state, struct commit *comm
13721372 FILE * fp ;
13731373
13741374 fp = xfopen (am_path (state , "patch" ), "w" );
1375- init_revisions ( & rev_info , NULL );
1375+ repo_init_revisions ( the_repository , & rev_info , NULL );
13761376 rev_info .diff = 1 ;
13771377 rev_info .abbrev = 0 ;
13781378 rev_info .disable_stdin = 1 ;
@@ -1407,7 +1407,7 @@ static void write_index_patch(const struct am_state *state)
14071407 the_repository -> hash_algo -> empty_tree );
14081408
14091409 fp = xfopen (am_path (state , "patch" ), "w" );
1410- init_revisions ( & rev_info , NULL );
1410+ repo_init_revisions ( the_repository , & rev_info , NULL );
14111411 rev_info .diff = 1 ;
14121412 rev_info .disable_stdin = 1 ;
14131413 rev_info .no_commit_id = 1 ;
@@ -1565,7 +1565,7 @@ static int fall_back_threeway(const struct am_state *state, const char *index_pa
15651565 struct rev_info rev_info ;
15661566 const char * diff_filter_str = "--diff-filter=AM" ;
15671567
1568- init_revisions ( & rev_info , NULL );
1568+ repo_init_revisions ( the_repository , & rev_info , NULL );
15691569 rev_info .diffopt .output_format = DIFF_FORMAT_NAME_STATUS ;
15701570 diff_opt_parse (& rev_info .diffopt , & diff_filter_str , 1 , rev_info .prefix );
15711571 add_pending_oid (& rev_info , "HEAD" , & our_tree , 0 );
0 commit comments