]> source.dussan.org Git - jgit.git/commitdiff
Fix formatting in GC#doGc 65/200165/1
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 24 Feb 2023 14:18:39 +0000 (15:18 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 24 Feb 2023 14:18:39 +0000 (15:18 +0100)
Change-Id: Ifa3adb66d4e0404bab4036d6b165d6c4dafe921a

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

index 502262a5fe1b9b7b6fa6a36268959ce4bc3ce975..a350561cc58a04677f6c0109222a66e3a2364311 100644 (file)
@@ -279,17 +279,17 @@ public class GC {
                        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;
+               }
        }
 
        /**