reachable: use traverse_commit_list instead of custom walk
authorJeff King <peff@peff.net>
Wed, 15 Oct 2014 22:37:28 +0000 (18:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2014 17:10:38 +0000 (10:10 -0700)
commit5f78a431ab222189b11a9233a5902db61aa32976
tree2e622e594d18b97b9a5395bcf5cc1006a1890d6e
parent1da1e07c835e900337714cfad6c32a8dc0b36ac3
reachable: use traverse_commit_list instead of custom walk

To find the set of reachable objects, we add a bunch of
possible sources to our rev_info, call prepare_revision_walk,
and then launch into a custom walker that handles each
object top. This is a subset of what traverse_commit_list
does, so we can just reuse that code (it can also handle
more complex cases like UNINTERESTING commits and pathspecs,
but we don't use those features).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reachable.c