collect_objects(
git_dir,wants,common,tick) ->objects,err
Collect the objects reachable from the wanted ids that the common ids do not reach
Walks commits (parents + trees), trees (entries, skipping gitlinks),
and annotated tags. Returns an array of { sha = hex, type = str }.
A blob named by a tree, or by a tag's type line, is listed unread:
build_pack finds a missing one.
common lists ids the client holds, each one present in the
repository. The walk leaves out every commit they reach, and every tree
and blob in the boundary: the commits the client holds that are parents
of the commits it lacks. A common tag counts as the object it names, a
common tree as everything in it. With no common, everything the wants
reach is listed.
tick, when given, is called once every 32 objects the walk reads.