]> source.dussan.org Git - jgit.git/commit
Expose bitmap selection parameters via PackConfig 84/58684/2
authorTerry Parker <tparker@google.com>
Mon, 19 Oct 2015 22:59:47 +0000 (15:59 -0700)
committerTerry Parker <tparker@google.com>
Thu, 22 Oct 2015 05:12:52 +0000 (22:12 -0700)
commit80c7884ea641e7f14cbdc2b70727275e202304ea
tree8c58c49660767f33f7f5f4de0258bec8ce4977d7
parent320a4142ad0e8febf4696446cc3a6346c0708a00
Expose bitmap selection parameters via PackConfig

Expose the following bitmap selection parameters via PackConfig:
"bitmapContiguousCommitCount", "bitmapRecentCommitCount",
"bitmapRecentCommitSpan", "bitmapDistantCommitSpan",
"bitmapExcessiveBranchCount", and "bitmapInactiveBranchAge".

The value of bitmapContiguousCommitCount, whereby bitmaps are
created for the most recent N commits in a branch, has never
been verified. If experiments show that they are not valuable,
then we can simplify the implementation so that there is only
a concept of recent and distant commit history (defined by
"bitmapRecentCommitCount"), and the only controls we need are
"bitmapRecentCommitSpan" and "bitmapDistantCommitSpan".

Change-Id: I288bf3f97d6fbfdfcd5dde2699eff433a7307fb9
Signed-off-by: Terry Parker <tparker@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparerTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackConfig.java