diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-07-17 00:56:17 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-07-17 00:57:21 +0200 |
commit | db08835c6c34bf31f25445abfd1d8ede193b8d14 (patch) | |
tree | 0e119f1307cc88d2a4fa7aa75b2d082f84faf47a | |
parent | f41c5e8c01308036b11d50254165714ef6e4a3af (diff) | |
download | jgit-db08835c6c34bf31f25445abfd1d8ede193b8d14.tar.gz jgit-db08835c6c34bf31f25445abfd1d8ede193b8d14.zip |
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
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java | 7 |
1 files changed, 0 insertions, 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 46f265f506..ace0d7be7b 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 class GC { Set<ObjectId> allHeads = new HashSet<>(); Set<ObjectId> allTags = new HashSet<>(); Set<ObjectId> nonHeads = new HashSet<>(); - Set<ObjectId> txnHeads = new HashSet<>(); Set<ObjectId> tagTargets = new HashSet<>(); Set<ObjectId> indexObjects = listNonHEADIndexObjects(); @@ -898,12 +897,6 @@ public class GC { 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) { |