Files
git/builtin
Jeff King 27e1e22d5e prune: factor out loose-object directory traversal
Prune has to walk $GIT_DIR/objects/?? in order to find the
set of loose objects to prune. Other parts of the code
(e.g., count-objects) want to do the same. Let's factor it
out into a reusable for_each-style function.

Note that this is not quite a straight code movement. The
original code had strange behavior when it found a file of
the form "[0-9a-f]{2}/.{38}" that did _not_ contain all hex
digits. It executed a "break" from the loop, meaning that we
stopped pruning in that directory (but still pruned other
directories!). This was probably a bug; we do not want to
process the file as an object, but we should keep going
otherwise (and that is how the new code handles it).

We are also a little more careful with loose object
directories which fail to open. The original code silently
ignored any failures, but the new code will complain about
any problems besides ENOENT.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-10-16 10:10:39 -07:00
..
2014-07-16 11:10:11 -07:00
2014-09-19 11:38:32 -07:00
2014-09-11 10:33:32 -07:00
2014-09-09 12:54:06 -07:00
2014-09-19 11:38:35 -07:00
2014-09-19 11:38:35 -07:00
2014-01-17 12:21:20 -08:00
2014-07-09 11:34:05 -07:00
2014-09-26 14:39:45 -07:00
2014-09-26 14:39:43 -07:00
2014-09-26 14:39:45 -07:00
2014-09-02 13:28:44 -07:00
2014-09-26 14:39:45 -07:00
2014-09-02 12:00:30 -07:00
2014-08-13 09:50:58 -07:00
2014-09-26 14:39:45 -07:00
2014-09-19 11:38:35 -07:00
2014-10-08 13:05:25 -07:00
2014-09-11 10:33:31 -07:00
2014-04-30 10:30:02 -07:00
2014-07-16 11:25:40 -07:00
2014-09-02 12:00:30 -07:00
2014-10-08 13:05:25 -07:00
2014-09-11 10:33:31 -07:00
2014-07-16 11:25:40 -07:00