GNU bug report logs -
#59254
[PATCH] scripts: describe: Add branch information to json output.
Previous Next
Reported by: jgart <jgart <at> dismail.de>
Date: Sun, 13 Nov 2022 21:32:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59254 in the body.
You can then email your comments to 59254 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#59254
; Package
guix-patches
.
(Sun, 13 Nov 2022 21:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jgart <jgart <at> dismail.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 13 Nov 2022 21:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* guix/scripts/describe.scm (channel->json): Add branch information.
---
guix/scripts/describe.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm
index 0c310e3da8..dbc040c54d 100644
--- a/guix/scripts/describe.scm
+++ b/guix/scripts/describe.scm
@@ -119,6 +119,7 @@ (define (channel->json channel)
(let ((intro (channel-introduction channel)))
`((name . ,(channel-name channel))
(url . ,(channel-url channel))
+ (branch . ,(channel-branch channel))
(commit . ,(channel-commit channel))
,@(if intro
`((introduction
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59254
; Package
guix-patches
.
(Sun, 13 Nov 2022 21:39:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 59254 <at> debbugs.gnu.org (full text, mbox):
* guix/scripts/describe.scm (channel->json): Add branch information.
This patch adds branch information to the json output.
Here's an example of the output:
$ guix-shell ./pre-inst-env guix describe -f json | jq
{
"name": "guix",
"url": "/home/jgart/dc2e8ad5-c818-41a4-ac33-198f11f868b2-guix/",
"branch": "master",
"commit": "a720eacc803d6e078ea07613ba5ab5ef59adcbb5",
"introduction": {
"commit": "9edb3f66fd807b096b48283debdcddccfea34bad",
"signer": "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"
}
}
v2 just adds my copyright statement at the top of the file.
all best,
jgart
---
guix/scripts/describe.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm
index 0c310e3da8..e2233c78a5 100644
--- a/guix/scripts/describe.scm
+++ b/guix/scripts/describe.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2018 Oleg Pykhalov <go.wigust <at> gmail.com>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz <at> elenq.tech>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune <at> gmail.com>
+;;; Copyright © 2022 jgart <jgart <at> dismail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -119,6 +120,7 @@ (define (channel->json channel)
(let ((intro (channel-introduction channel)))
`((name . ,(channel-name channel))
(url . ,(channel-url channel))
+ (branch . ,(channel-branch channel))
(commit . ,(channel-commit channel))
,@(if intro
`((introduction
--
2.38.1
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Sat, 19 Nov 2022 18:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
jgart <jgart <at> dismail.de>
:
bug acknowledged by developer.
(Sat, 19 Nov 2022 18:43:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 59254-done <at> debbugs.gnu.org (full text, mbox):
jgart <jgart <at> dismail.de> skribis:
> * guix/scripts/describe.scm (channel->json): Add branch information.
Applied, thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59254
; Package
guix-patches
.
(Sat, 19 Nov 2022 18:45:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 59254-done <at> debbugs.gnu.org (full text, mbox):
On Sat, 19 Nov 2022 19:42:34 +0100 Ludovic Courtès <ludo <at> gnu.org> wrote:
> Applied, thanks!
Thanks for the review!
all best,
jgart
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Dec 2022 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.