path: root/Documentation/git-repack.txt
diff options
authorNguyễn Thái Ngọc Duy <>2018-04-14 15:35:03 (GMT)
committerJunio C Hamano <>2018-04-16 03:38:58 (GMT)
commitb5c0cbd8083f71e071207fca0d5434c6db6ff6c9 (patch)
tree95a653e9ace7710e94a4d43438ed67b851141e0b /Documentation/git-repack.txt
parent0c6804ab4ee5cfa47fe28e0a2d20415c5c1f8884 (diff)
pack-objects: use bitfield for object_entry::depth
Because of struct packing from now on we can only handle max depth 4095 (or even lower when new booleans are added in this struct). This should be ok since long delta chain will cause significant slow down anyway. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-repack.txt')
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
index ae750e9..25c83c4 100644
--- a/Documentation/git-repack.txt
+++ b/Documentation/git-repack.txt
@@ -90,7 +90,9 @@ other objects in that pack they already have locally.
space. `--depth` limits the maximum delta depth; making it too deep
affects the performance on the unpacker side, because delta data needs
to be applied that many times to get to the necessary object.
- The default value for --window is 10 and --depth is 50.
+The default value for --window is 10 and --depth is 50. The maximum
+depth is 4095.
This option is passed through to `git pack-objects`.