diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-13 21:31:00 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-10-13 21:31:00 +0200 |
commit | e4779dab99496ffa202289c1cad9e2d71ab6f20d (patch) | |
tree | 30bd6514349ede35d9fa07b044ac6c3253eae47d /org.eclipse.jgit.pgm/src/org/eclipse | |
parent | 0b5d4c3aadb3157a78250b0b5b01160f6b550fb5 (diff) | |
parent | 01dde5c76774ad95e584e335182ba7333f2e7f95 (diff) | |
download | jgit-e4779dab99496ffa202289c1cad9e2d71ab6f20d.tar.gz jgit-e4779dab99496ffa202289c1cad9e2d71ab6f20d.zip |
Merge branch 'stable-6.7'
* stable-6.7:
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: I7e0856a5d70d5d155cf6874383ea1f5622d5238a
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse')
-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); |