]> source.dussan.org Git - jgit.git/commit
PushCommand: allow users to disable use of bitmaps for push 05/194705/3
authorkylezhao <kylezhao@tencent.com>
Thu, 14 Jul 2022 03:23:03 +0000 (11:23 +0800)
committerThomas Wolf <twolf@apache.org>
Fri, 21 Oct 2022 06:11:33 +0000 (08:11 +0200)
commitad9c217f4954dc50f629b3eb6ae387b6940a5023
tree5f4018d5d0dbe353f54da7aca888f34b8781e6b5
parent71af0d6a5c4417a9c9c6523d4aa811579d8c867f
PushCommand: allow users to disable use of bitmaps for push

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 PushCommand#setUseBitmaps(boolean) to allow users to tell "git push"
not to use bitmaps.

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

Change-Id: I7fb7d26084ec63ddfa7249cf58abb85929b30e56
Signed-off-by: kylezhao <kylezhao@tencent.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransportTest.java
org.eclipse.jgit/.settings/.api_filters [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java