aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.c
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2020-03-14 08:55:46 +0100
committerFlorian Pritz <bluewind@xinu.at>2020-03-14 08:55:46 +0100
commit2cbdd90e0f8575eda6486b4bb06521d848eaa307 (patch)
treefc28a97fede3b74ae2cb2e778ffd4c0ae59c637b /ui-diff.c
parent6c66430e9658616e118d10af9c9ab48858a04e67 (diff)
parent55fa25adb097d2681607d8b0f51a0c393cc9af1a (diff)
downloadcgit-2cbdd90e0f8575eda6486b4bb06521d848eaa307.tar.gz
cgit-2cbdd90e0f8575eda6486b4bb06521d848eaa307.tar.xz
Merge branch 'master' of https://git.zx2c4.com/cgit into local
Diffstat (limited to 'ui-diff.c')
-rw-r--r--ui-diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-diff.c b/ui-diff.c
index c60aefd..329c350 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -413,7 +413,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
"Bad commit: %s", oid_to_hex(new_rev_oid));
return;
}
- new_tree_oid = &commit->maybe_tree->object.oid;
+ new_tree_oid = get_commit_tree_oid(commit);
if (old_rev) {
if (get_oid(old_rev, old_rev_oid)) {
@@ -434,7 +434,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
"Bad commit: %s", oid_to_hex(old_rev_oid));
return;
}
- old_tree_oid = &commit2->maybe_tree->object.oid;
+ old_tree_oid = get_commit_tree_oid(commit2);
} else {
old_tree_oid = NULL;
}