diff options
Diffstat (limited to 'patch-ids.c')
-rw-r--r-- | patch-ids.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patch-ids.c b/patch-ids.c index bf81b92361..a4d0016664 100644 --- a/patch-ids.c +++ b/patch-ids.c @@ -4,14 +4,14 @@ #include "sha1-lookup.h" #include "patch-ids.h" -static int commit_patch_id(struct commit *commit, struct diff_options *options, +int commit_patch_id(struct commit *commit, struct diff_options *options, unsigned char *sha1) { if (commit->parents) - diff_tree_sha1(commit->parents->item->object.sha1, - commit->object.sha1, "", options); + diff_tree_sha1(commit->parents->item->object.oid.hash, + commit->object.oid.hash, "", options); else - diff_root_tree_sha1(commit->object.sha1, "", options); + diff_root_tree_sha1(commit->object.oid.hash, "", options); diffcore_std(options); return diff_flush_patch_id(options, sha1); } |