Skip to content

Commit c343e49

Browse files
committed
Merge branch 'ms/document-pack-window-memory-is-per-thread' into maint
* ms/document-pack-window-memory-is-per-thread: document git-repack interaction of pack.threads and pack.windowMemory
2 parents f34d900 + 954176c commit c343e49

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Documentation/git-pack-objects.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ base-name::
104104
out of memory with a large window, but still be able to take
105105
advantage of the large window for the smaller objects. The
106106
size can be suffixed with "k", "m", or "g".
107-
`--window-memory=0` makes memory usage unlimited, which is the
108-
default.
107+
`--window-memory=0` makes memory usage unlimited. The default
108+
is taken from the `pack.windowMemory` configuration variable.
109109

110110
--max-pack-size=<n>::
111111
Maximum size of each output pack file. The size can be suffixed with

Documentation/git-repack.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ other objects in that pack they already have locally.
100100
out of memory with a large window, but still be able to take
101101
advantage of the large window for the smaller objects. The
102102
size can be suffixed with "k", "m", or "g".
103-
`--window-memory=0` makes memory usage unlimited, which is the
104-
default.
103+
`--window-memory=0` makes memory usage unlimited. The default
104+
is taken from the `pack.windowMemory` configuration variable.
105+
Note that the actual memory usage will be the limit multiplied
106+
by the number of threads used by linkgit:git-pack-objects[1].
105107

106108
--max-pack-size=<n>::
107109
Maximum size of each output pack file. The size can be suffixed with

0 commit comments

Comments
 (0)