struct object_array_entry *ent;
ent = revs->pending.objects;
- if (diff_cache(revs, get_object_hash(*ent->item), ent->name, cached))
+ if (diff_cache(revs, ent->item->oid.hash, ent->name, cached))
exit(128);
diff_set_mnemonic_prefix(&revs->diffopt, "c/", cached ? "i/" : "w/");