summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAntonio Barone <syntonyze@gmail.com>2023-10-05 21:58:13 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-10-12 22:51:14 +0200
commitf103a1d5c605f5f4545050c1176a9a202151f942 (patch)
tree0e02f74591968f0f983156f97ec6eec0ef75fe9c /Documentation
parentf5f4bf0ad97f67ff56db18033c0a0795b722e96e (diff)
downloadjgit-f103a1d5c605f5f4545050c1176a9a202151f942.tar.gz
jgit-f103a1d5c605f5f4545050c1176a9a202151f942.zip
Add support for git config repack.packKeptObjects
Change Ide3445e652 introduced the `--pack-kept-objects` option to GC for including the objects contained in the locked packfiles during the repack phase. Whilst this allowed to explicitly pass a command line argument to the jgit gc program, it did not allow the option to be read from configuration. Allow the pack kept objects option to be configured exactly as C-Git documents [1], by introducing a new `repack.packKeptObjects` configuration. `repack.packKeptObjects` defaults to `true`, when the `pack.buildBitmaps` is `true` (which is the default case), `false` otherwise. [1] https://git-scm.com/docs/git-config#Documentation/git-config.txt-repackpackKeptObjects Bug: 582292 Change-Id: Ia931667277410d71bc079d27c097a57094299840
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config-options.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config-options.md b/Documentation/config-options.md
index 5d76483acf..7221cceb35 100644
--- a/Documentation/config-options.md
+++ b/Documentation/config-options.md
@@ -110,3 +110,9 @@ Proxy configuration uses the standard Java mechanisms via class `java.net.ProxyS
| `pack.waitPreventRacyPack` | `false` | &#x20DE; | Whether we wait before opening a newly written pack to prevent its lastModified timestamp could be racy. |
| `pack.window` | `10` | &#x2705; | Number of objects to try when looking for a delta base per thread searching for deltas. |
| `pack.windowMemory` | `0` (unlimited) | &#x2705; | Maximum number of bytes to put into the delta search window. |
+
+## __repack__ options
+
+| option | default | git option | description |
+|---------|---------|------------|-------------|
+| `repack.packKeptObjects` | `true` when `pack.buildBitmaps` is set, `false` otherwise | &#x2705; | Include objects in packs locked by a `.keep` file when repacking. | \ No newline at end of file