sha1_file: add for_each iterators for loose and packed objects
commit660c889e46d185dc98ba78963528826728b0a55d
authorJeff King <peff@peff.net>
Wed, 15 Oct 2014 22:41:21 +0000 (15 18:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2014 17:10:41 +0000 (16 10:10 -0700)
treef70f42402438859d21623c290330cca9bc54a979
parent4a1e693a30c816fa5293c5f9e83e1e98ee87584e
sha1_file: add for_each iterators for loose and packed objects

We typically iterate over the reachable objects in a
repository by starting at the tips and walking the graph.
There's no easy way to iterate over all of the objects,
including unreachable ones. Let's provide a way of doing so.

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