mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
46f7011591
commit
f36522416e
3 changed files with 23 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue