Skip to content

Commit ccf6861

Browse files
committed
Merge branch 'cw/pack-config-doc'
Doc update. * cw/pack-config-doc: doc: mention bigFileThreshold for packing
2 parents dddb420 + 3a837b5 commit ccf6861

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Documentation/git-pack-objects.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,17 @@ Note that we pick a single island for each regex to go into, using "last
400400
one wins" ordering (which allows repo-specific config to take precedence
401401
over user-wide config, and so forth).
402402

403+
404+
CONFIGURATION
405+
-------------
406+
407+
Various configuration variables affect packing, see
408+
linkgit:git-config[1] (search for "pack" and "delta").
409+
410+
Notably, delta compression is not used on objects larger than the
411+
`core.bigFileThreshold` configuration variable and on files with the
412+
attribute `delta` set to false.
413+
403414
SEE ALSO
404415
--------
405416
linkgit:git-rev-list[1]

Documentation/git-repack.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,12 @@ depth is 4095.
165165
Pass the `--delta-islands` option to `git-pack-objects`, see
166166
linkgit:git-pack-objects[1].
167167

168-
Configuration
168+
CONFIGURATION
169169
-------------
170170

171+
Various configuration variables affect packing, see
172+
linkgit:git-config[1] (search for "pack" and "delta").
173+
171174
By default, the command passes `--delta-base-offset` option to
172175
'git pack-objects'; this typically results in slightly smaller packs,
173176
but the generated packs are incompatible with versions of Git older than
@@ -178,6 +181,10 @@ need to set the configuration variable `repack.UseDeltaBaseOffset` to
178181
is unaffected by this option as the conversion is performed on the fly
179182
as needed in that case.
180183

184+
Delta compression is not used on objects larger than the
185+
`core.bigFileThreshold` configuration variable and on files with the
186+
attribute `delta` set to false.
187+
181188
SEE ALSO
182189
--------
183190
linkgit:git-pack-objects[1]

0 commit comments

Comments
 (0)