diff-tree: convert diff_tree_sha1 to struct object_id