]> source.dussan.org Git - jgit.git/commit
PackBitmapIndex: Add AddToBitmapWithCacheFilter class 24/157524/10
authorYunjie Li <yunjieli@google.com>
Tue, 11 Feb 2020 01:02:13 +0000 (17:02 -0800)
committerYunjie Li <yunjieli@google.com>
Wed, 13 May 2020 00:32:15 +0000 (17:32 -0700)
commit067d946090c4db43134687c93d30192ad1314bec
treec52fe129180b9830b58a80b0555a886a791aed75
parentb1d4b457081e7e31d292237991a4fe20e6d1b689
PackBitmapIndex: Add AddToBitmapWithCacheFilter class

Add a new revwalk filter, AddToBitmapWithCachedFilter. This filter updates
a client-provided {@code BitmapBuilder} as a side effect of a revwalk.
Similar to {@code AddToBitmapFilter}, it short circuits the walk when it
encounters a commit which is included in the provided bitmap's BitmapIndex.
It also short circuits the walk if it encounters the client-provided
cached commit.

Change-Id: I62cb503016f4d3995d648d92b82baab7f93549a9
Signed-off-by: Yunjie Li <yunjieli@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/revwalk/AddToBitmapWithCacheFilter.java [new file with mode: 0644]