aboutsummaryrefslogtreecommitdiff
path: root/guix/channels.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-10-11 11:19:54 +0200
committerLudovic Courtès <ludo@gnu.org>2022-10-17 09:37:27 +0200
commitf36522416e69d95f222fdfa6404d1981eb5225b6 (patch)
tree7110dc419904e6431f7bd13c6e3ef21b2f622b6d /guix/channels.scm
parent46f7011591601b4783b2dc2c7252c41564ca0140 (diff)
downloadguix-f36522416e69d95f222fdfa6404d1981eb5225b6.tar
guix-f36522416e69d95f222fdfa6404d1981eb5225b6.tar.gz
channels: Interpret the 'commit' field of channel as a tag or commit.
Previously the 'commit' field would always be interpreted as a commit ID. This change adds flexibility, allowing for things like: guix time-machine --commit=v1.2.0 -- describe * guix/channels.scm (channel-reference): Use 'tag-or-commit' rather than 'commit'. * guix/inferior.scm (channel-full-commit): Likewise. * doc/guix.texi (Invoking guix pull): Document it. (Invoking guix time-machine): Likewise.
Diffstat (limited to 'guix/channels.scm')
-rw-r--r--guix/channels.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/channels.scm b/guix/channels.scm
index f1c23c17fb..d84228c47e 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -248,7 +248,7 @@ could be found at DIRECTORY or one of its ancestors."
'latest-repository-commit'."
(match (channel-commit channel)
(#f `(branch . ,(channel-branch channel)))
- (commit `(commit . ,(channel-commit channel)))))
+ (commit `(tag-or-commit . ,(channel-commit channel)))))
(define sexp->channel-introduction
(match-lambda