commit | 5f78a431ab222189b11a9233a5902db61aa32976 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Wed Oct 15 18:37:28 2014 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Oct 16 10:10:38 2014 -0700 |
tree | 2e622e594d18b97b9a5395bcf5cc1006a1890d6e | |
parent | 1da1e07c835e900337714cfad6c32a8dc0b36ac3 [diff] |
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>