Fix formatting in GC#doGc
Change-Id: Ifa3adb66d4e0404bab4036d6b165d6c4dafe921a
This commit is contained in:
parent
ad07196d60
commit
cfacc43b52
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue