diff options
| author | Sergio Pastor Pérez <sergio.pastorperez@gmail.com> | 2026-06-06 14:13:26 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-06-24 15:34:44 +0200 |
| commit | 2949c187f600841cdcddfc4f955506b34b79244f (patch) | |
| tree | 31fe464218cbd4ecd9877dd4114187fb4d9c4cd0 /doc | |
| parent | 247245fbef1923a3bc17a23627e9c016900b4edc (diff) | |
pull: Add channel filtering options to the CLI.
* doc/guix.texi (Invoking guix pull): Document channel selection and exclusion
flags.
* etc/news.scm: Add entry.
* guix/scripts/pull.scm (show-help): Add help strings for channel selection
and exclusion flags.
(%options): Handle channel selection and exclusion flags.
(collect-alist-values): New procedure.
(options->channel-transformation): New procedure.
(channel-list): Implement channel selection and exclusion logic.
* guix/scripts/time-machine.scm (show-help): Add help strings for channel
selection and exclusion flags.
(%options): Handle channel selection and exclusion flags.
Change-Id: Ia22c5c38903ed1a2b9a9353ff94b70795820376d
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 7950843c3c2..127c87f7f48 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -140,7 +140,7 @@ Copyright @copyright{} 2024 Greg Hogan@* | |||
| 140 | Copyright @copyright{} 2025 Sören Tempel@* | 140 | Copyright @copyright{} 2025 Sören Tempel@* |
| 141 | Copyright @copyright{} 2025 Rostislav Svoboda@* | 141 | Copyright @copyright{} 2025 Rostislav Svoboda@* |
| 142 | Copyright @copyright{} 2025 Zacchaeus@* | 142 | Copyright @copyright{} 2025 Zacchaeus@* |
| 143 | Copyright @copyright{} 2025 Sergio Pastor Pérez@* | 143 | Copyright @copyright{} 2025, 2026 Sergio Pastor Pérez@* |
| 144 | Copyright @copyright{} 2024 Evgeny Pisemsky@* | 144 | Copyright @copyright{} 2024 Evgeny Pisemsky@* |
| 145 | Copyright @copyright{} 2025 jgart@* | 145 | Copyright @copyright{} 2025 jgart@* |
| 146 | Copyright @copyright{} 2025 Artur Wroblewski@* | 146 | Copyright @copyright{} 2025 Artur Wroblewski@* |
| @@ -5014,6 +5014,21 @@ understand the code of the channel files you use! | |||
| 5014 | Inhibit loading of the user and system channel files, | 5014 | Inhibit loading of the user and system channel files, |
| 5015 | @file{~/.config/guix/channels.scm} and @file{/etc/guix/channels.scm}. | 5015 | @file{~/.config/guix/channels.scm} and @file{/etc/guix/channels.scm}. |
| 5016 | 5016 | ||
| 5017 | @cindex pinning channels, with @command{guix pull} | ||
| 5018 | @anchor{pull-select} | ||
| 5019 | @item --select=@var{channel} | ||
| 5020 | @itemx -e | ||
| 5021 | Update only @var{channel}, keeping the commit of any other non-selected | ||
| 5022 | channel unchanged. In other words, any channel not selected with this | ||
| 5023 | option is effectively @dfn{pinned} to its current commit. This option | ||
| 5024 | can be repeated. | ||
| 5025 | |||
| 5026 | @item --exclude=@var{channel} | ||
| 5027 | @itemx -x | ||
| 5028 | Prevent @var{channel} from being updated, effectively @dfn{pinning} it | ||
| 5029 | to its current commit as shown by @command{guix describe}. All the | ||
| 5030 | other channels will be updated. This option can be repeated. | ||
| 5031 | |||
| 5017 | @cindex channel news | 5032 | @cindex channel news |
| 5018 | @item --news | 5033 | @item --news |
| 5019 | @itemx -N | 5034 | @itemx -N |
| @@ -5325,6 +5340,13 @@ Substitution,,, bash, The GNU Bash Reference Manual}): | |||
| 5325 | guix time-machine -C <(echo %default-channels) @dots{} | 5340 | guix time-machine -C <(echo %default-channels) @dots{} |
| 5326 | @end example | 5341 | @end example |
| 5327 | 5342 | ||
| 5343 | @item --select | ||
| 5344 | @itemx -e | ||
| 5345 | @itemx --exclude | ||
| 5346 | @itemx -x | ||
| 5347 | Select or exclude channels that need to be updated. @xref{pull-select}, for | ||
| 5348 | more info. | ||
| 5349 | |||
| 5328 | @end table | 5350 | @end table |
| 5329 | 5351 | ||
| 5330 | Note that @command{guix time-machine} can trigger builds of channels and | 5352 | Note that @command{guix time-machine} can trigger builds of channels and |
