* [PATCH] Documentation/gitpacking: make sample configs listing blocks
@ 2024-07-17 10:54 Martin Ågren
2024-07-17 15:48 ` Junio C Hamano
2024-07-18 22:51 ` Taylor Blau
0 siblings, 2 replies; 3+ messages in thread
From: Martin Ågren @ 2024-07-17 10:54 UTC (permalink / raw)
To: git; +Cc: Taylor Blau
This document contains a few sample config snippets. At least with
Asciidoctor, the section headers are rendered *more* indented than the
variables that follow:
[bitmapPseudoMerge "all"]
pattern = "refs/"
...
To address this, wrap these listings in AsciiDoc listing blocks. Remove
the indentation from the section headings. This is similar to how we
handle such sample config elsewhere, e.g., in config.txt.
While we're here, fix the nearby "wiht" typo.
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
These buglets were introduced in faf558b23e (pseudo-merge: implement
support for selecting pseudo-merge commits, 2024-05-23) as part of
tb/pseudo-merge-reachability-bitmap.
Documentation/gitpacking.txt | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/Documentation/gitpacking.txt b/Documentation/gitpacking.txt
index 4a6fcba6f7..321154d4e6 100644
--- a/Documentation/gitpacking.txt
+++ b/Documentation/gitpacking.txt
@@ -143,14 +143,16 @@ include::config/bitmap-pseudo-merge.txt[]
Suppose that you have a repository with a large number of references,
and you want a bare-bones configuration of pseudo-merge bitmaps that
will enhance bitmap coverage of the `refs/` namespace. You may start
-wiht a configuration like so:
+with a configuration like so:
- [bitmapPseudoMerge "all"]
+----
+[bitmapPseudoMerge "all"]
pattern = "refs/"
threshold = now
stableThreshold = never
sampleRate = 100
maxMerges = 64
+----
This will create pseudo-merge bitmaps for all references, regardless of
their age, and group them into 64 pseudo-merge commits.
@@ -159,8 +161,10 @@ If you wanted to separate tags from branches when generating
pseudo-merge commits, you would instead define the pattern with a
capture group, like so:
- [bitmapPseudoMerge "all"]
+----
+[bitmapPseudoMerge "all"]
pattern = "refs/(heads/tags)/"
+----
Suppose instead that you are working in a fork-network repository, with
each fork specified by some numeric ID, and whose refs reside in
@@ -168,12 +172,14 @@ each fork specified by some numeric ID, and whose refs reside in
fork) in the network. In this instance, you may instead write something
like:
- [bitmapPseudoMerge "all"]
+----
+[bitmapPseudoMerge "all"]
pattern = "refs/virtual/([0-9]+)/(heads|tags)/"
threshold = now
stableThreshold = never
sampleRate = 100
maxMerges = 64
+----
Which would generate pseudo-merge group identifiers like "1234-heads",
and "5678-tags" (for branches in fork "1234", and tags in remote "5678",
--
2.46.0.rc0.321.g44c27ab58a
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation/gitpacking: make sample configs listing blocks
2024-07-17 10:54 [PATCH] Documentation/gitpacking: make sample configs listing blocks Martin Ågren
@ 2024-07-17 15:48 ` Junio C Hamano
2024-07-18 22:51 ` Taylor Blau
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2024-07-17 15:48 UTC (permalink / raw)
To: Martin Ågren; +Cc: git, Taylor Blau
Martin Ågren <martin.agren@gmail.com> writes:
> To address this, wrap these listings in AsciiDoc listing blocks. Remove
> the indentation from the section headings. This is similar to how we
> handle such sample config elsewhere, e.g., in config.txt.
>
> While we're here, fix the nearby "wiht" typo.
>
> Signed-off-by: Martin Ågren <martin.agren@gmail.com>
> ---
> These buglets were introduced in faf558b23e (pseudo-merge: implement
> support for selecting pseudo-merge commits, 2024-05-23) as part of
> tb/pseudo-merge-reachability-bitmap.
Thanks, will queue.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation/gitpacking: make sample configs listing blocks
2024-07-17 10:54 [PATCH] Documentation/gitpacking: make sample configs listing blocks Martin Ågren
2024-07-17 15:48 ` Junio C Hamano
@ 2024-07-18 22:51 ` Taylor Blau
1 sibling, 0 replies; 3+ messages in thread
From: Taylor Blau @ 2024-07-18 22:51 UTC (permalink / raw)
To: Martin Ågren; +Cc: git
Hi Martin,
On Wed, Jul 17, 2024 at 12:54:28PM +0200, Martin Ågren wrote:
> ---
> These buglets were introduced in faf558b23e (pseudo-merge: implement
> support for selecting pseudo-merge commits, 2024-05-23) as part of
> tb/pseudo-merge-reachability-bitmap.
>
> Documentation/gitpacking.txt | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
Oops. Thank you for finding and fixing, it is much appreciated.
Thanks,
Taylor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-18 22:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 10:54 [PATCH] Documentation/gitpacking: make sample configs listing blocks Martin Ågren
2024-07-17 15:48 ` Junio C Hamano
2024-07-18 22:51 ` Taylor Blau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).