channels: Interpret the 'commit' field of channel as a tag or commit.
authorLudovic Courtès <ludo@gnu.org>
Tue, 11 Oct 2022 09:19:54 +0000 (11:19 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 17 Oct 2022 07:37:27 +0000 (09:37 +0200)
commitf36522416e69d95f222fdfa6404d1981eb5225b6
tree7110dc419904e6431f7bd13c6e3ef21b2f622b6d
parent46f7011591601b4783b2dc2c7252c41564ca0140
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.
doc/guix.texi
guix/channels.scm
guix/inferior.scm