From db08835c6c34bf31f25445abfd1d8ede193b8d14 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 17 Jul 2023 00:56:17 +0200 Subject: [PATCH] GC: Remove handling of extra pack for RefTree RefTree was packed in its own packfile, see Icbb735be8fa91ccbf0708ca3a219b364e11a6b83. RefTree was deleted in Ia3da7f2b82d9e365cec2ccf9397cbc47439cd150, since it was experimental and never used productively. This change missed to remove the extra pack handling for RefTree. Change-Id: I8c0d0a66440c331c3d03d0e07d5629682af2a7a9 --- .../src/org/eclipse/jgit/internal/storage/file/GC.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index 46f265f50..ace0d7be7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java @@ -834,7 +834,6 @@ public Collection repack() throws IOException { Set allHeads = new HashSet<>(); Set allTags = new HashSet<>(); Set nonHeads = new HashSet<>(); - Set txnHeads = new HashSet<>(); Set tagTargets = new HashSet<>(); Set indexObjects = listNonHEADIndexObjects(); @@ -898,12 +897,6 @@ public Collection repack() throws IOException { if (rest != null) ret.add(rest); } - if (!txnHeads.isEmpty()) { - Pack txn = writePack(txnHeads, PackWriter.NONE, PackWriter.NONE, - PackWriter.NONE, null, excluded); - if (txn != null) - ret.add(txn); - } try { deleteOldPacks(toBeDeleted, ret); } catch (ParseException e) {