diff-tree: convert diff_tree_sha1 to struct object_id
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
9e5e0c289a
commit
66f414f885
@ -17,8 +17,8 @@ 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_oid(&commit->object.oid, "", options);
|
||||
diffcore_std(options);
|
||||
|
Reference in New Issue
Block a user