summaryrefslogtreecommitdiff
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 21:08:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-05 18:08:06 (GMT)
commitf0766bf94ec7a398a5a524053ea5334883c16a2e (patch)
tree7518dc1ef9819673b2b7655ed5c5b1d963657a4e /diff-no-index.c
parente23a91b04702fb3d7a85195ef52bdeacd3ee9433 (diff)
downloadgit-f0766bf94ec7a398a5a524053ea5334883c16a2e.zip
git-f0766bf94ec7a398a5a524053ea5334883c16a2e.tar.gz
git-f0766bf94ec7a398a5a524053ea5334883c16a2e.tar.bz2
fsck: use for_each_loose_file_in_objdir
Since 27e1e22 (prune: factor out loose-object directory traversal, 2014-10-15), we now have a generic callback system for iterating over the loose object directories. This is used by prune, count-objects, etc. We did not convert git-fsck at the time because it implemented an inode-sorting scheme that was not part of the generic code. Now that the inode-sorting code is gone, we can reuse the generic code. The result is shorter, hopefully more readable, and drops some unchecked sprintf calls. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-no-index.c')
0 files changed, 0 insertions, 0 deletions