I'm thinking:
memset(&opts, 0, sizeof opts);
opts.update = 1;
opts.verbose_update = !option_quiet;
opts.dst_index = &the_index;
init_tree_desc(&t[0], tree->buffer, tree->size);
unpack_trees(1, t, &opts);
That is, write it, but not read it, and only have one tree.
-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html