You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config-options.md 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # JGit configuration options
  2. ## Legend
  3. | git option | description |
  4. |------------|-------------|
  5. | ✅ | option defined by native git |
  6. | ⃞ | jgit custom option not supported by native git |
  7. ## __core__ options
  8. | option | default | git option | description |
  9. |---------|---------|------------|-------------|
  10. | `core.bigFileThreshold` | `52428800` (50 MiB) | ✅ | Maximum file size that will be delta compressed. Files larger than this size are stored deflated, without attempting delta compression. |
  11. | `core.compression` | `-1` (default compression) | ✅ | An integer -1..9, indicating a default compression level. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest.|
  12. ## __gc__ options
  13. | option | default | git option | description |
  14. |---------|---------|------------|-------------|
  15. | `gc.aggressiveDepth` | 50 | ✅ | The depth parameter used in the delta compression algorithm used by aggressive garbage collection. |
  16. | `gc.aggressiveWindow` | 250 | ✅ | The window size parameter used in the delta compression algorithm used by aggressive garbage collection. |
  17. | `gc.auto` | `6700` | ✅ | Number of loose objects until auto gc combines all loose objects into a pack and consolidates all existing packs into one. Setting to 0 disables automatic packing of loose objects. |
  18. | `gc.autoDetach` | `true` | ✅ | Make auto gc return immediately and run in background. |
  19. | `gc.autoPackLimit` | `50` | ✅ | Number of packs until auto gc consolidates existing packs (except those marked with a .keep file) into a single pack. Setting `gc.autoPackLimit` to 0 disables automatic consolidation of packs. |
  20. | `gc.logExpiry` | `1.day.ago` | ✅ | If the file `gc.log` exists, then auto gc will print its content and exit successfully instead of running unless that file is more than `gc.logExpiry` old. |
  21. | `gc.pruneExpire` | `2.weeks.ago` | ✅ | Grace period after which unreachable objects will be pruned. |
  22. | `gc.prunePackExpire` | `1.hour.ago` | ⃞ | Grace period after which packfiles only containing unreachable objects will be pruned. |
  23. ## __pack__ options
  24. | option | default | git option | description |
  25. |---------|---------|------------|-------------|
  26. | `pack.bitmapContiguousCommitCount` | `100` | ⃞ | Count of most recent commits for which to build bitmaps. |
  27. | `pack.bitmapDistantCommitSpan` | `5000` | ⃞ | Span of commits when building bitmaps for distant history. |
  28. | `pack.bitmapExcessiveBranchCount` | `100` | ⃞ | The count of branches deemed "excessive". If the count of branches in a repository exceeds this number and bitmaps are enabled, "inactive" branches will have fewer bitmaps than "active" branches. |
  29. | `pack.bitmapInactiveBranchAgeInDays` | `90` | ⃞ | Age in days that marks a branch as "inactive" for bitmap creation. |
  30. | `pack.bitmapRecentCommitCount` | `20000` | ⃞ | Count at which to switch from `bitmapRecentCommitSpan` to `bitmapDistantCommitSpan`. |
  31. | `pack.bitmapRecentCommitSpan` | `100` | ⃞ | Span of commits when building bitmaps for recent history. |
  32. | `pack.buildBitmaps` | `true` | ⃞ synonym for `repack.writeBitmaps` | Whether index writer is allowed to build bitmaps for indexes. |
  33. | `pack.compression` | `core.compression` | ✅ | Compression level applied to objects in the pack. |
  34. | `pack.cutDeltaChains` | `false` | ⃞ | Whether existing delta chains should be cut at {@link #getMaxDeltaDepth() |
  35. | `pack.deltaCacheLimit` | `100` | ✅ | Maximum size in bytes of a delta to cache. |
  36. | `pack.deltaCacheSize` | `52428800` (50 MiB) | ✅ | Size of the in-memory delta cache. |
  37. | `pack.deltaCompression` | `true` | ⃞ | Whether the writer will create new deltas on the fly. `true` if the pack writer will create a new delta when either `pack.reuseDeltas` is false, or no suitable delta is available for reuse. |
  38. | `pack.depth` | `50` | ✅ | Maximum depth of delta chain set up for the pack writer. |
  39. | `pack.indexVersion` | `2` | ✅ | Pack index file format version. |
  40. | `pack.minSizePreventRacyPack` | `104857600` (100 MiB) | ⃞ | Minimum packfile size for which we wait before opening a newly written pack to prevent its lastModified timestamp could be racy if `pack.waitPreventRacyPack` is `true`. |
  41. | `pack.preserveOldPacks` | `false` | ⃞ | Whether to preserve old packs in a preserved directory. |
  42. | `prunePreserved`, only via API of PackConfig | `false` | ⃞ | Whether to remove preserved pack files in a preserved directory. |
  43. | `pack.reuseDeltas` | `true` |⃞ | Whether to reuse deltas existing in repository. |
  44. | `pack.reuseObjects` | `true` | ⃞ | Whether to reuse existing objects representation in repository. |
  45. | `pack.singlePack` | `false` | ⃞ | Whether all of `refs/*` should be packed in a single pack. |
  46. | `pack.threads` | `0` (auto-detect number of processors) | ✅ | Number of threads to use for delta compression. |
  47. | `pack.waitPreventRacyPack` | `false` | ⃞ | Whether we wait before opening a newly written pack to prevent its lastModified timestamp could be racy. |
  48. | `pack.window` | `10` | ✅ | Number of objects to try when looking for a delta base per thread searching for deltas. |
  49. | `pack.windowMemory` | `0` (unlimited) | ✅ | Maximum number of bytes to put into the delta search window. |