|
|
|
@ -137,6 +137,7 @@ public class GC {
|
|
|
|
|
* @throws IOException |
|
|
|
|
*/ |
|
|
|
|
public Collection<PackFile> gc() throws IOException { |
|
|
|
|
pm.start(6 /* tasks */); |
|
|
|
|
packRefs(); |
|
|
|
|
// TODO: implement reflog_expire(pm, repo);
|
|
|
|
|
Collection<PackFile> newPacks = repack(); |
|
|
|
@ -262,6 +263,7 @@ public class GC {
|
|
|
|
|
if (fanout != null && fanout.length > 0) { |
|
|
|
|
pm.beginTask(JGitText.get().pruneLooseUnreferencedObjects, |
|
|
|
|
fanout.length); |
|
|
|
|
try { |
|
|
|
|
for (String d : fanout) { |
|
|
|
|
pm.update(1); |
|
|
|
|
if (d.length() != 2) |
|
|
|
@ -291,6 +293,9 @@ public class GC {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} finally { |
|
|
|
|
pm.endTask(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (deletionCandidates.isEmpty()) |
|
|
|
|
return; |
|
|
|
|