pgbackrest.git / summary / log / commit / refs
commit 3e9eabd8a5551cdaeb6bc78a52f000eaf239defb
Author: David Steele <david@pgbackrest.org>
Date: Tue Jul 07 08:26:14 2026 +0000
Make stanza option internal for the repo-* commands.
The stanza option is accepted by repo-get, repo-ls, repo-put, and repo-rm but does not construct a stanza-specific path as the documentation implied. It is only meaningful in combination with the storage path constants (e.g. <REPO:ARCHIVE>, <REPO:BACKUP>), which are themselves undocumented. This left the option documented but apparently non-functional for anyone spelling out the repository path directly.
Mark the option as internal for these commands so it no longer appears in the help/reference while remaining fully functional. This preserves existing usage (e.g. check_pgbackrest and macro-based tooling) with no behavioral change.
doc/xml/release/2020s/2026/2.59.0.xml | 11 +++++++++++
src/build/config/config.yaml | 4 ++++
src/config/parse.auto.c.inc | 8 ++++++++
3 files changed, 23 insertions(+)
diff --git a/doc/xml/release/2020s/2026/2.59.0.xml b/doc/xml/release/2020s/2026/2.59.0.xml
index 30a205bf4..0bbdb5be6 100644
--- a/doc/xml/release/2020s/2026/2.59.0.xml
+++ b/doc/xml/release/2020s/2026/2.59.0.xml
@@ -279,6 +279,17 @@
<p><proper>C11</proper> is now the minimum C standard.</p>
</release-item>
+
+ <release-item>
+ <github-issue id="2735"/>
+
+ <release-item-contributor-list>
+ <release-item-contributor id="david.steele"/>
+ <release-item-reviewer id="stefan.fercot"/>
+ </release-item-contributor-list>
+
+ <p>Make <setting>stanza</setting> option internal for the <cmd>repo-*</cmd> commands.</p>
+ </release-item>
</release-improvement-list>
<release-development-list>
diff --git a/src/build/config/config.yaml b/src/build/config/config.yaml
index cf970cd49..ba8861fd5 100644
--- a/src/build/config/config.yaml
+++ b/src/build/config/config.yaml
@@ -434,12 +434,16 @@ option:
manifest: {}
repo-get:
required: false
+ internal: true
repo-ls:
required: false
+ internal: true
repo-put:
required: false
+ internal: true
repo-rm:
required: false
+ internal: true
restore: {}
stanza-create: {}
stanza-delete: {}
diff --git a/src/config/parse.auto.c.inc b/src/config/parse.auto.c.inc
index 77b7bf7c1..12dd8ebf7 100644
--- a/src/config/parse.auto.c.inc
+++ b/src/config/parse.auto.c.inc
@@ -10702,6 +10702,14 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
PARSE_RULE_OPTION_REQUIRED(true), // opt/stanza
PARSE_RULE_OPTION_SECTION(CommandLine), // opt/stanza
// opt/stanza
+ PARSE_RULE_OPTION_COMMAND_INTERNAL_LIST // opt/stanza
+ ( // opt/stanza
+ PARSE_RULE_OPTION_COMMAND_INTERNAL(RepoGet, true), // opt/stanza
+ PARSE_RULE_OPTION_COMMAND_INTERNAL(RepoLs, true), // opt/stanza
+ PARSE_RULE_OPTION_COMMAND_INTERNAL(RepoPut, true), // opt/stanza
+ PARSE_RULE_OPTION_COMMAND_INTERNAL(RepoRm, true), // opt/stanza
+ ) // opt/stanza
+ // opt/stanza
PARSE_RULE_OPTION_COMMAND_ROLE_MAIN_VALID_LIST // opt/stanza
( // opt/stanza
PARSE_RULE_OPTION_COMMAND(Annotate) // opt/stanza
[parent: 34a035f4d62f]