reachable: use traverse_commit_list instead of custom walk
authorJeff King <redacted>
Wed, 15 Oct 2014 22:37:28 +0000 (18:37 -0400)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
reachable.c
git clone https://git.99rst.org/PROJECT