diff options
author | Brandon Williams <bmwill@google.com> | 2017-05-30 19:30:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-02 02:36:30 +0200 |
commit | 7b8dea0c7570a2028f204498c82c8ca7ec6950e3 (patch) | |
tree | c82e22cd716506a480e086aa444dc67897f9cc4e /tree-diff.c | |
parent | combine-diff: convert find_paths_* to struct object_id (diff) | |
download | git-7b8dea0c7570a2028f204498c82c8ca7ec6950e3.tar.xz git-7b8dea0c7570a2028f204498c82c8ca7ec6950e3.zip |
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 'tree-diff.c')
-rw-r--r-- | tree-diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-diff.c b/tree-diff.c index 7ae1f10b2e..f9bbaf3c47 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -711,7 +711,7 @@ int diff_tree_sha1(const unsigned char *old, const unsigned char *new, const cha return retval; } -int diff_root_tree_sha1(const unsigned char *new, const char *base, struct diff_options *opt) +int diff_root_tree_oid(const struct object_id *new_oid, const char *base, struct diff_options *opt) { - return diff_tree_sha1(NULL, new, base, opt); + return diff_tree_sha1(NULL, new_oid->hash, base, opt); } |