Fix formatting in GC#doGc

Change-Id: Ifa3adb66d4e0404bab4036d6b165d6c4dafe921a
This commit is contained in:
Matthias Sohn 2023-02-24 15:18:39 +01:00
parent ad07196d60
commit cfacc43b52
1 changed files with 10 additions and 10 deletions

View File

@ -279,17 +279,17 @@ private Collection<Pack> doGc() throws IOException, ParseException {
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()));
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;
}
return newPacks;
}
}
/**