diff mbox series

[bug#52716] channels: Add 'branch' to 'channel->code' output.

Message ID 20211221205601.4985-1-brice@waegenei.re
State Accepted
Headers show
Series [bug#52716] channels: Add 'branch' to 'channel->code' output. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Brice Waegeneire Dec. 21, 2021, 8:56 p.m. UTC
* guix/channels.scm (channel->code): Add 'branch' to output.
---
 guix/channels.scm | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mathieu Othacehe Dec. 23, 2021, 4:45 p.m. UTC | #1
Hello Brice,

> * guix/channels.scm (channel->code): Add 'branch' to output.

Seems fine!

Thanks,

Mathieu
Brice Waegeneire Dec. 25, 2021, 6:50 p.m. UTC | #2
Hello Mathieu,

Mathieu Othacehe <othacehe@gnu.org> writes:

>> * guix/channels.scm (channel->code): Add 'branch' to output.
>
> Seems fine!

Thank you for the review, pushed as b891f8519dbea5457d9ad154974b1ab1459b4b8b.

Cheers
- Brice
diff mbox series

Patch

diff --git a/guix/channels.scm b/guix/channels.scm
index e4e0428eb5..5f47834c10 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -2,6 +2,7 @@ 
 ;;; Copyright © 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1009,7 +1010,8 @@  (define* (channel->code channel #:key (include-introduction? #t))
     `(channel
       (name ',(channel-name channel))
       (url ,(channel-url channel))
+      (branch ,(channel-branch channel))
       (commit ,(channel-commit channel))
       ,@(if intro
             `((introduction (make-channel-introduction