Skip to content

pr-1263/keyu98/kz/push-usebitmps-config-v4

From: Kyle Zhao <kylezhao@tencent.com>

Reachability bitmaps are designed to speed up the "counting objects"
phase of generating a pack during a clone or fetch. They are not
optimized for Git clients sending a small topic branch via "git push".
In some cases (see [1]), using reachability bitmaps during "git push"
can cause significant performance regressions.

Add a new "push.useBitmaps" configuration variable to allow users to
tell "git push" not to use bitmaps. We already have "pack.bitmaps"
that controls the use of bitmaps, but a separate configuration variable
allows the reachability bitmaps to still be used in other areas,
such as "git upload-pack", while disabling it only for "git push".

[1]: https://lore.kernel.org/git/87zhoz8b9o.fsf@evledraar.gmail.com/

Signed-off-by: Kyle Zhao <kylezhao@tencent.com>

Submitted-As: https://lore.kernel.org/git/pull.1263.v4.git.1655492779228.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1263.git.1655291320433.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1263.v2.git.1655350617442.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1263.v3.git.1655438361228.gitgitgadget@gmail.com
Assets 2