doc: warn people against --max-pack-size
This option is almost never a good idea, as the resulting repository is larger and slower (see the new explanations in the docs). I outlined the potential problems. We could go further and make the option harder to find (or at least, make the command-line option descriptions a much more terse "you probably don't want this; see pack.packsizeLimit for details"). But this seems like a minimal change that may prevent people from thinking it's more useful than it is. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
48bf2fa8ba
commit
6fb9195f6c
@ -99,12 +99,23 @@ pack.packSizeLimit::
|
|||||||
packing to a file when repacking, i.e. the git:// protocol
|
packing to a file when repacking, i.e. the git:// protocol
|
||||||
is unaffected. It can be overridden by the `--max-pack-size`
|
is unaffected. It can be overridden by the `--max-pack-size`
|
||||||
option of linkgit:git-repack[1]. Reaching this limit results
|
option of linkgit:git-repack[1]. Reaching this limit results
|
||||||
in the creation of multiple packfiles; which in turn prevents
|
in the creation of multiple packfiles.
|
||||||
bitmaps from being created.
|
+
|
||||||
The minimum size allowed is limited to 1 MiB.
|
Note that this option is rarely useful, and may result in a larger total
|
||||||
The default is unlimited.
|
on-disk size (because Git will not store deltas between packs), as well
|
||||||
Common unit suffixes of 'k', 'm', or 'g' are
|
as worse runtime performance (object lookup within multiple packs is
|
||||||
supported.
|
slower than a single pack, and optimizations like reachability bitmaps
|
||||||
|
cannot cope with multiple packs).
|
||||||
|
+
|
||||||
|
If you need to actively run Git using smaller packfiles (e.g., because your
|
||||||
|
filesystem does not support large files), this option may help. But if
|
||||||
|
your goal is to transmit a packfile over a medium that supports limited
|
||||||
|
sizes (e.g., removable media that cannot store the whole repository),
|
||||||
|
you are likely better off creating a single large packfile and splitting
|
||||||
|
it using a generic multi-volume archive tool (e.g., Unix `split`).
|
||||||
|
+
|
||||||
|
The minimum size allowed is limited to 1 MiB. The default is unlimited.
|
||||||
|
Common unit suffixes of 'k', 'm', or 'g' are supported.
|
||||||
|
|
||||||
pack.useBitmaps::
|
pack.useBitmaps::
|
||||||
When true, git will use pack bitmaps (if available) when packing
|
When true, git will use pack bitmaps (if available) when packing
|
||||||
|
@ -118,10 +118,10 @@ depth is 4095.
|
|||||||
into multiple independent packfiles, each not larger than the
|
into multiple independent packfiles, each not larger than the
|
||||||
given size. The size can be suffixed with
|
given size. The size can be suffixed with
|
||||||
"k", "m", or "g". The minimum size allowed is limited to 1 MiB.
|
"k", "m", or "g". The minimum size allowed is limited to 1 MiB.
|
||||||
This option
|
|
||||||
prevents the creation of a bitmap index.
|
|
||||||
The default is unlimited, unless the config variable
|
The default is unlimited, unless the config variable
|
||||||
`pack.packSizeLimit` is set.
|
`pack.packSizeLimit` is set. Note that this option may result in
|
||||||
|
a larger and slower repository; see the discussion in
|
||||||
|
`pack.packSizeLimit`.
|
||||||
|
|
||||||
--honor-pack-keep::
|
--honor-pack-keep::
|
||||||
This flag causes an object already in a local pack that
|
This flag causes an object already in a local pack that
|
||||||
|
@ -121,7 +121,9 @@ depth is 4095.
|
|||||||
If specified, multiple packfiles may be created, which also
|
If specified, multiple packfiles may be created, which also
|
||||||
prevents the creation of a bitmap index.
|
prevents the creation of a bitmap index.
|
||||||
The default is unlimited, unless the config variable
|
The default is unlimited, unless the config variable
|
||||||
`pack.packSizeLimit` is set.
|
`pack.packSizeLimit` is set. Note that this option may result in
|
||||||
|
a larger and slower repository; see the discussion in
|
||||||
|
`pack.packSizeLimit`.
|
||||||
|
|
||||||
-b::
|
-b::
|
||||||
--write-bitmap-index::
|
--write-bitmap-index::
|
||||||
|
Loading…
Reference in New Issue
Block a user