]> source.dussan.org Git - jgit.git/commit
GC: delete empty directories after purging loose objects 24/89824/3
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 30 Jan 2017 00:24:45 +0000 (01:24 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 1 Feb 2017 22:44:07 +0000 (23:44 +0100)
commit18cda3888c455e48de38088ee51803096a48ae28
tree30510ef71649d4482fb1ccd7116744442c296151
parenta11bb03127b9ab193c956589381c496429f82d87
GC: delete empty directories after purging loose objects

In order to limit the number of directories we check for emptiness only
consider fanout directories which contained unreferenced loose objects
we deleted in the same gc run.

Change-Id: Idf8d512867ee1c8ed40bd55752122ce83a98ffa2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java