]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: fix broken `sampleRate` in gitpacking(7)
authorTaylor Blau <me@ttaylorr.com>
Tue, 12 May 2026 00:47:09 +0000 (20:47 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 May 2026 01:36:18 +0000 (10:36 +0900)
The documentation explaining some sample configurations for bitmap
pseudo-merges incorrectly uses a sample rate outside of the allowed
(0,1] range.

This dates back to faf558b23ef (pseudo-merge: implement support for
selecting pseudo-merge commits, 2024-05-23), and was likely written when
the allowable range for this configuration was the integral values
between (0,100].

Fix this to conform to the actual allowable range for this
configuration.

Noticed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitpacking.adoc

index a56596e2d1d84df1fca8fd6dbf266b69dcf36da9..e6de6ec82491726fc96c37f2854519e56b37fb50 100644 (file)
@@ -150,7 +150,7 @@ with a configuration like so:
        pattern = "refs/"
        threshold = now
        stableThreshold = never
-       sampleRate = 100
+       sampleRate = 1
        maxMerges = 64
 ----
 
@@ -177,7 +177,7 @@ like:
        pattern = "refs/virtual/([0-9]+)/(heads|tags)/"
        threshold = now
        stableThreshold = never
-       sampleRate = 100
+       sampleRate = 1
        maxMerges = 64
 ----