Convert struct object to object_id
struct object is one of the major data structures dealing with object IDs. Convert it to use struct object_id instead of an unsigned char array. Convert get_object_hash to refer to the new member as well. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
committed by
Jeff King
parent
7999b2cf77
commit
f2fd0760f6
@ -49,8 +49,8 @@ static int stdin_diff_trees(struct tree *tree1, char *line, int len)
|
||||
tree2 = lookup_tree(sha1);
|
||||
if (!tree2 || parse_tree(tree2))
|
||||
return -1;
|
||||
printf("%s %s\n", sha1_to_hex(tree1->object.sha1),
|
||||
sha1_to_hex(tree2->object.sha1));
|
||||
printf("%s %s\n", oid_to_hex(&tree1->object.oid),
|
||||
oid_to_hex(&tree2->object.oid));
|
||||
diff_tree_sha1(get_object_hash(tree1->object), get_object_hash(tree2->object),
|
||||
"", &log_tree_opt.diffopt);
|
||||
log_tree_diff_flush(&log_tree_opt);
|
||||
|
||||
Reference in New Issue
Block a user