summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergio Pastor Pérez <sergio.pastorperez@gmail.com>2026-06-06 14:13:26 +0200
committerLudovic Courtès <ludo@gnu.org>2026-06-24 15:34:44 +0200
commit2949c187f600841cdcddfc4f955506b34b79244f (patch)
tree31fe464218cbd4ecd9877dd4114187fb4d9c4cd0 /doc
parent247245fbef1923a3bc17a23627e9c016900b4edc (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.texi24
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@*
140Copyright @copyright{} 2025 Sören Tempel@* 140Copyright @copyright{} 2025 Sören Tempel@*
141Copyright @copyright{} 2025 Rostislav Svoboda@* 141Copyright @copyright{} 2025 Rostislav Svoboda@*
142Copyright @copyright{} 2025 Zacchaeus@* 142Copyright @copyright{} 2025 Zacchaeus@*
143Copyright @copyright{} 2025 Sergio Pastor Pérez@* 143Copyright @copyright{} 2025, 2026 Sergio Pastor Pérez@*
144Copyright @copyright{} 2024 Evgeny Pisemsky@* 144Copyright @copyright{} 2024 Evgeny Pisemsky@*
145Copyright @copyright{} 2025 jgart@* 145Copyright @copyright{} 2025 jgart@*
146Copyright @copyright{} 2025 Artur Wroblewski@* 146Copyright @copyright{} 2025 Artur Wroblewski@*
@@ -5014,6 +5014,21 @@ understand the code of the channel files you use!
5014Inhibit loading of the user and system channel files, 5014Inhibit 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
5021Update only @var{channel}, keeping the commit of any other non-selected
5022channel unchanged. In other words, any channel not selected with this
5023option is effectively @dfn{pinned} to its current commit. This option
5024can be repeated.
5025
5026@item --exclude=@var{channel}
5027@itemx -x
5028Prevent @var{channel} from being updated, effectively @dfn{pinning} it
5029to its current commit as shown by @command{guix describe}. All the
5030other 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}):
5325guix time-machine -C <(echo %default-channels) @dots{} 5340guix 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
5347Select or exclude channels that need to be updated. @xref{pull-select}, for
5348more info.
5349
5328@end table 5350@end table
5329 5351
5330Note that @command{guix time-machine} can trigger builds of channels and 5352Note that @command{guix time-machine} can trigger builds of channels and