]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-log.c
global: use proper accessors for maybe_tree
[cgit.git] / ui-log.c
index dc5cb1eb6a0b34e7a0cc197cb397fc002248ee1e..2939c0162a394f08ff2feefaca0a3f811ad01b00 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -153,8 +153,8 @@ static int show_commit(struct commit *commit, struct rev_info *revs)
        rem_lines = 0;
 
        revs->diffopt.flags.recursive = 1;
-       diff_tree_oid(&parent->maybe_tree->object.oid,
-                     &commit->maybe_tree->object.oid,
+       diff_tree_oid(get_commit_tree_oid(parent),
+                     get_commit_tree_oid(commit),
                      "", &revs->diffopt);
        diffcore_std(&revs->diffopt);