if (!lock.lock()) {
return Collections.emptyList();
}
- pm.start(6 /* tasks */);
- packRefs();
- // TODO: implement reflog_expire(pm, repo);
- Collection<Pack> newPacks = repack();
- prune(Collections.emptySet());
- // TODO: implement rerere_gc(pm);
- if (shouldWriteCommitGraphWhenGc()) {
- writeCommitGraph(refsToObjectIds(getAllRefs()));
- }
- return newPacks;
- }
+ pm.start(6 /* tasks */);
+ packRefs();
+ // TODO: implement reflog_expire(pm, repo);
+ Collection<Pack> newPacks = repack();
+ prune(Collections.emptySet());
+ // TODO: implement rerere_gc(pm);
+ if (shouldWriteCommitGraphWhenGc()) {
+ writeCommitGraph(refsToObjectIds(getAllRefs()));
+ }
+ return newPacks;
+ }
}
/**