Add documentation for --window-memory, pack.windowMemory
Signed-off-by: Brian Downing <bdowning@lavos.net> Acked-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brian Downing committed
Jul 12, 2007 at 07:55 UTC
e93b15cd7441369f28dd4841ab504cea83c18b10
3 files changed
+28
Documentation/config.txt
+6
@@ -589,6 +589,12 @@ pack.depth::
589
The maximum delta depth used by gitlink:git-pack-objects[1] when no
590
maximum depth is given on the command line. Defaults to 50.
591
592
+pack.windowMemory::
593
+ The window memory size limit used by gitlink:git-pack-objects[1]
594
+ when no limit is given on the command line. The value can be
595
+ suffixed with "k", "m", or "g". Defaults to 0, meaning no
596
+ limit.
597
+
598
pack.compression::
599
An integer -1..9, indicating the compression level for objects
600
in a pack file. -1 is the zlib default. 0 means no
Documentation/git-pack-objects.txt
+11
@@ -85,6 +85,17 @@ base-name::
85
times to get to the necessary object.
86
The default value for --window is 10 and --depth is 50.
87
88
+--window-memory=[N]::
89
+ This option provides an additional limit on top of `--window`;
90
+ the window size will dynamically scale down so as to not take
91
+ up more than N bytes in memory. This is useful in
92
+ repositories with a mix of large and small objects to not run
93
+ out of memory with a large window, but still be able to take
94
+ advantage of the large window for the smaller objects. The
95
+ size can be suffixed with "k", "m", or "g".
96
+ `--window-memory=0` makes memory usage unlimited, which is the
97
+ default.
98
+
99
--max-pack-size=<n>::
100
Maximum size of each output packfile, expressed in MiB.
101
If specified, multiple packfiles may be created.
Documentation/git-repack.txt
+11
@@ -68,6 +68,17 @@ OPTIONS
68
to be applied that many times to get to the necessary object.
69
The default value for --window is 10 and --depth is 50.
70
71
+--window-memory=[N]::
72
+ This option provides an additional limit on top of `--window`;
73
+ the window size will dynamically scale down so as to not take
74
+ up more than N bytes in memory. This is useful in
75
+ repositories with a mix of large and small objects to not run
76
+ out of memory with a large window, but still be able to take
77
+ advantage of the large window for the smaller objects. The
78
+ size can be suffixed with "k", "m", or "g".
79
+ `--window-memory=0` makes memory usage unlimited, which is the
80
+ default.
81
+
82
--max-pack-size=<n>::
83
Maximum size of each output packfile, expressed in MiB.
84
If specified, multiple packfiles may be created.