match-trees: convert shift_tree() and shift_tree_by() to use object_id
[gitweb.git] / test-match-trees.c
index a4eea75a15824adce01eeb356c864665e98d2d83..17ebdf80bece3846679c9367ee0741c272db4994 100644 (file)
@@ -17,7 +17,7 @@ int main(int ac, char **av)
        if (!two)
                die("not a tree-ish %s", av[2]);
 
-       shift_tree(one->object.oid.hash, two->object.oid.hash, shifted.hash, -1);
+       shift_tree(&one->object.oid, &two->object.oid, &shifted, -1);
        printf("shifted: %s\n", oid_to_hex(&shifted));
 
        exit(0);