diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-13 09:06:21 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-13 09:06:21 +0200 |
commit | 01dde5c76774ad95e584e335182ba7333f2e7f95 (patch) | |
tree | 56f5f038f853acca86e8a616df82d6481703986e /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm | |
parent | bb12dd4cbde54234042f607bf923e83040910929 (diff) | |
parent | b6098c549d1ad052917a3515d2d1c19c03b7bce9 (diff) | |
download | jgit-01dde5c76774ad95e584e335182ba7333f2e7f95.tar.gz jgit-01dde5c76774ad95e584e335182ba7333f2e7f95.zip |
Merge branch 'stable-6.6' into stable-6.7
* stable-6.6:
PackConfig: fix @since tags
Remove unused API problem filters
Add support for git config repack.packKeptObjects
Do not exclude objects in locked packs from bitmap processing
Change-Id: I29241619e6c09933bb856e486f379be10dd609c2
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java index 2796b9115f..35ac7a162a 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Gc.java @@ -27,6 +27,10 @@ class Gc extends TextBuiltin { @Option(name = "--prune-preserved", usage = "usage_PrunePreserved") private Boolean prunePreserved; + @Option(name = "--pack-kept-objects", usage = "usage_PackKeptObjects") + private Boolean packKeptObjects; + + /** {@inheritDoc} */ @Override protected void run() { Git git = Git.wrap(db); @@ -39,6 +43,9 @@ class Gc extends TextBuiltin { if (prunePreserved != null) { command.setPrunePreserved(prunePreserved.booleanValue()); } + if (packKeptObjects != null) { + command.setPackKeptObjects(packKeptObjects.booleanValue()); + } command.call(); } catch (GitAPIException e) { throw die(e.getMessage(), e); |