summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-26 00:43:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-26 00:43:31 (GMT)
commitccf6861b7272f99ab078345e1ee6d6b37b742cc0 (patch)
tree08e5e6d2fe723eda96a08c354d7076e6c42fbd9d /Documentation
parentdddb4205351a973438e50e751ec1d6d8cbcada4f (diff)
parent3a837b58e33ee67f21a2ca737c6a12d74cee9e5e (diff)
downloadgit-ccf6861b7272f99ab078345e1ee6d6b37b742cc0.zip
git-ccf6861b7272f99ab078345e1ee6d6b37b742cc0.tar.gz
git-ccf6861b7272f99ab078345e1ee6d6b37b742cc0.tar.bz2
Merge branch 'cw/pack-config-doc'
Doc update. * cw/pack-config-doc: doc: mention bigFileThreshold for packing
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-pack-objects.txt11
-rw-r--r--Documentation/git-repack.txt9
2 files changed, 19 insertions, 1 deletions
diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index 54d715e..f85cb7e 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -400,6 +400,17 @@ Note that we pick a single island for each regex to go into, using "last
one wins" ordering (which allows repo-specific config to take precedence
over user-wide config, and so forth).
+
+CONFIGURATION
+-------------
+
+Various configuration variables affect packing, see
+linkgit:git-config[1] (search for "pack" and "delta").
+
+Notably, delta compression is not used on objects larger than the
+`core.bigFileThreshold` configuration variable and on files with the
+attribute `delta` set to false.
+
SEE ALSO
--------
linkgit:git-rev-list[1]
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
index 92f146d..fbd4b4a 100644
--- a/Documentation/git-repack.txt
+++ b/Documentation/git-repack.txt
@@ -165,9 +165,12 @@ depth is 4095.
Pass the `--delta-islands` option to `git-pack-objects`, see
linkgit:git-pack-objects[1].
-Configuration
+CONFIGURATION
-------------
+Various configuration variables affect packing, see
+linkgit:git-config[1] (search for "pack" and "delta").
+
By default, the command passes `--delta-base-offset` option to
'git pack-objects'; this typically results in slightly smaller packs,
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
is unaffected by this option as the conversion is performed on the fly
as needed in that case.
+Delta compression is not used on objects larger than the
+`core.bigFileThreshold` configuration variable and on files with the
+attribute `delta` set to false.
+
SEE ALSO
--------
linkgit:git-pack-objects[1]