@@ -506,7 +506,7 @@ static int fill_blob_sha1_and_mode(struct origin *origin)
506506{
507507 if (!is_null_sha1 (origin -> blob_sha1 ))
508508 return 0 ;
509- if (get_tree_entry (get_object_hash ( origin -> commit -> object ) ,
509+ if (get_tree_entry (origin -> commit -> object . oid . hash ,
510510 origin -> path ,
511511 origin -> blob_sha1 , & origin -> mode ))
512512 goto error_out ;
@@ -558,10 +558,10 @@ static struct origin *find_origin(struct scoreboard *sb,
558558 diff_setup_done (& diff_opts );
559559
560560 if (is_null_oid (& origin -> commit -> object .oid ))
561- do_diff_cache (get_object_hash ( parent -> tree -> object ) , & diff_opts );
561+ do_diff_cache (parent -> tree -> object . oid . hash , & diff_opts );
562562 else
563- diff_tree_sha1 (get_object_hash ( parent -> tree -> object ) ,
564- get_object_hash ( origin -> commit -> tree -> object ) ,
563+ diff_tree_sha1 (parent -> tree -> object . oid . hash ,
564+ origin -> commit -> tree -> object . oid . hash ,
565565 "" , & diff_opts );
566566 diffcore_std (& diff_opts );
567567
@@ -628,10 +628,10 @@ static struct origin *find_rename(struct scoreboard *sb,
628628 diff_setup_done (& diff_opts );
629629
630630 if (is_null_oid (& origin -> commit -> object .oid ))
631- do_diff_cache (get_object_hash ( parent -> tree -> object ) , & diff_opts );
631+ do_diff_cache (parent -> tree -> object . oid . hash , & diff_opts );
632632 else
633- diff_tree_sha1 (get_object_hash ( parent -> tree -> object ) ,
634- get_object_hash ( origin -> commit -> tree -> object ) ,
633+ diff_tree_sha1 (parent -> tree -> object . oid . hash ,
634+ origin -> commit -> tree -> object . oid . hash ,
635635 "" , & diff_opts );
636636 diffcore_std (& diff_opts );
637637
@@ -1276,10 +1276,10 @@ static void find_copy_in_parent(struct scoreboard *sb,
12761276 DIFF_OPT_SET (& diff_opts , FIND_COPIES_HARDER );
12771277
12781278 if (is_null_oid (& target -> commit -> object .oid ))
1279- do_diff_cache (get_object_hash ( parent -> tree -> object ) , & diff_opts );
1279+ do_diff_cache (parent -> tree -> object . oid . hash , & diff_opts );
12801280 else
1281- diff_tree_sha1 (get_object_hash ( parent -> tree -> object ) ,
1282- get_object_hash ( target -> commit -> tree -> object ) ,
1281+ diff_tree_sha1 (parent -> tree -> object . oid . hash ,
1282+ target -> commit -> tree -> object . oid . hash ,
12831283 "" , & diff_opts );
12841284
12851285 if (!DIFF_OPT_TST (& diff_opts , FIND_COPIES_HARDER ))
@@ -2077,7 +2077,7 @@ static int read_ancestry(const char *graft_file)
20772077
20782078static int update_auto_abbrev (int auto_abbrev , struct origin * suspect )
20792079{
2080- const char * uniq = find_unique_abbrev (get_object_hash ( suspect -> commit -> object ) ,
2080+ const char * uniq = find_unique_abbrev (suspect -> commit -> object . oid . hash ,
20812081 auto_abbrev );
20822082 int len = strlen (uniq );
20832083 if (auto_abbrev < len )
@@ -2216,7 +2216,7 @@ static void verify_working_tree_path(struct commit *work_tree, const char *path)
22162216 struct commit_list * parents ;
22172217
22182218 for (parents = work_tree -> parents ; parents ; parents = parents -> next ) {
2219- const unsigned char * commit_sha1 = get_object_hash ( parents -> item -> object ) ;
2219+ const unsigned char * commit_sha1 = parents -> item -> object . oid . hash ;
22202220 unsigned char blob_sha1 [20 ];
22212221 unsigned mode ;
22222222
0 commit comments