object: convert parse_object* to take struct object_id
[git/git.git] / builtin / diff-tree.c
index 95b8d1b..5ea1c14 100644 (file)
@@ -67,7 +67,7 @@ static int diff_tree_stdin(char *line)
        line[len-1] = 0;
        if (parse_oid_hex(line, &oid, &p))
                return -1;
-       obj = parse_object(oid.hash);
+       obj = parse_object(&oid);
        if (!obj)
                return -1;
        if (obj->type == OBJ_COMMIT)