summaryrefslogtreecommitdiff
path: root/patch-ids.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-05-30 17:30:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-02 00:36:30 (GMT)
commit7b8dea0c7570a2028f204498c82c8ca7ec6950e3 (patch)
treec82e22cd716506a480e086aa444dc67897f9cc4e /patch-ids.c
parent09fae19aa8db639d2384a98f8ebd2f9ec66f6e28 (diff)
downloadgit-7b8dea0c7570a2028f204498c82c8ca7ec6950e3.zip
git-7b8dea0c7570a2028f204498c82c8ca7ec6950e3.tar.gz
git-7b8dea0c7570a2028f204498c82c8ca7ec6950e3.tar.bz2
tree-diff: convert diff_root_tree_sha1 to struct object_id
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-ids.c')
-rw-r--r--patch-ids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch-ids.c b/patch-ids.c
index a70a291..aaf462c 100644
--- a/patch-ids.c
+++ b/patch-ids.c
@@ -20,7 +20,7 @@ int commit_patch_id(struct commit *commit, struct diff_options *options,
diff_tree_sha1(commit->parents->item->object.oid.hash,
commit->object.oid.hash, "", 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, diff_header_only);
}