stop_at = lambda x: x.decode('hex') in trees_visited
approx_live_count = 0
for ref_name, ref_id in git.list_refs():
- for item in walk_object(cat_pipe, ref_id.encode('hex'),
+ for item in walk_object(cat_pipe.get, ref_id.encode('hex'),
stop_at=stop_at,
include_data=None):
# FIXME: batch ids