tag: convert gpg_verify_tag to use struct object_id
[gitweb.git] / patch-ids.c
index aab26cbbb9aa34105e4bd94a388aea05c3eff5be..9c0ab9e67a80b54f87d9b9d52fa08de7167aec4a 100644 (file)
@@ -17,12 +17,12 @@ int commit_patch_id(struct commit *commit, struct diff_options *options,
                return -1;
 
        if (commit->parents)
-               diff_tree_sha1(commit->parents->item->object.oid.hash,
-                              commit->object.oid.hash, "", options);
+               diff_tree_oid(&commit->parents->item->object.oid,
+                             &commit->object.oid, "", options);
        else
-               diff_root_tree_sha1(commit->object.oid.hash, "", options);
+               diff_root_tree_oid(&commit->object.oid, "", options);
        diffcore_std(options);
-       return diff_flush_patch_id(options, oid->hash, diff_header_only);
+       return diff_flush_patch_id(options, oid, diff_header_only);
 }
 
 /*