pack-refs: remove newly empty directories
commitbe7c6d467e8cc4104e1a15e8ff2d7b207624c685
authorGreg Price <price@ksplice.com>
Tue, 6 Jul 2010 23:29:19 +0000 (6 19:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jul 2010 16:11:37 +0000 (7 09:11 -0700)
treecb23a29c9a86b0017534892ed0db31e9fe821541
parent78db709ae59da26de76264b79df3a7dc4d87e65c
pack-refs: remove newly empty directories

In a large repository which uses directories to organize many refs,
"git pack-refs --all --prune" does not improve performance so much
as it should, unless we remove all the now-empty directories as well.

Signed-off-by: Greg Price <price@ksplice.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-refs.c
t/t3210-pack-refs.sh