From unknown Sun Aug 17 09:10:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59254 <59254@debbugs.gnu.org> To: bug#59254 <59254@debbugs.gnu.org> Subject: Status: [PATCH] scripts: describe: Add branch information to json output. Reply-To: bug#59254 <59254@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:10:37 +0000 retitle 59254 [PATCH] scripts: describe: Add branch information to json out= put. reassign 59254 guix-patches submitter 59254 jgart severity 59254 normal tag 59254 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 13 16:31:23 2022 Received: (at submit) by debbugs.gnu.org; 13 Nov 2022 21:31:24 +0000 Received: from localhost ([127.0.0.1]:48499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouKZX-0002nl-Le for submit@debbugs.gnu.org; Sun, 13 Nov 2022 16:31:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:54704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouKZT-0002nN-Ee for submit@debbugs.gnu.org; Sun, 13 Nov 2022 16:31:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouKZT-0008EQ-68 for guix-patches@gnu.org; Sun, 13 Nov 2022 16:31:19 -0500 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouKZR-0001DE-6U for guix-patches@gnu.org; Sun, 13 Nov 2022 16:31:18 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 512051f4 for ; Sun, 13 Nov 2022 22:31:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=w9Iehv5IKlhNsFh9xlOA70DjQBomTcpsLPY2v10y19Q=; b= uovY4ttVojpUABonSWrq6Gt89e1mHDiE1c2EF508+RdvJhJPJ4JJJ0o0qnrWQ+uX vfqWbnbNPH3rxVnOpIZqz11jv13YaJkBzDBxATUzGR8UypZ/kBdJ1Sdz7tzWCRIY oUN8SA6gn5tOV6PmPEBVpcks2Q16ZMEb+DqyFVlc2s4p1lVXyCAMkp92qmX3Yc97 IHzeGFej+DlBS0wGnhbP33O73bJyUNH9Jw6EWB9VQG136l6oyADKk7wTPEEfCR/o VE5xdLSz2P68hRB+PmpSZDjIMpmLzrnEauTGEtEYF+UUoiD3fKvrheoqcaWYi4a4 mYHa5laoNzi7lZNSXcofNA== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 60b8e625 for ; Sun, 13 Nov 2022 22:31:13 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 36d817bd for ; Sun, 13 Nov 2022 22:31:13 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 7e20906e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 13 Nov 2022 22:31:13 +0100 (CET) From: jgart To: guix-patches@gnu.org Subject: [PATCH] scripts: describe: Add branch information to json output. Date: Sun, 13 Nov 2022 15:31:01 -0600 Message-Id: <20221113213101.27519-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 13 16:38:21 2022 Received: (at 59254) by debbugs.gnu.org; 13 Nov 2022 21:38:21 +0000 Received: from localhost ([127.0.0.1]:48520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouKgH-0002yD-4l for submit@debbugs.gnu.org; Sun, 13 Nov 2022 16:38:21 -0500 Received: from mx1.dismail.de ([78.46.223.134]:38150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouKgF-0002y1-65 for 59254@debbugs.gnu.org; Sun, 13 Nov 2022 16:38:19 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 567d65e1 for <59254@debbugs.gnu.org>; Sun, 13 Nov 2022 22:38:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=ikU62+9Ej5vDDDqkWsBvo vMzk9I4rWufY7HW1gNHONY=; b=GGiN0+PGCF9rZxjXAUzQfoI9wO5mEr7KXew8m GZrd9zmCBHmwaA9g67/WkoVB+gxXCVolKEysjHFd9qNs4uTlgu7QvZXmwphSka8U D+NqvtNA/OIC54ZFc4PG12zdmfLM6uXcrei6mfkJp1qwhgiv8xtz6X4AQFNmNrfV KllYBa5KFxd6G/O4j5oGDIRss88Z6coUMDplaYobFKcEDY9NUOeg9wzq0yOXdBcd 01YSmYIjy1LR0KXGTY87+W0CCXpY/b+S9Nxbu3hC4Qr1luOcPZCSsysLSIhU4O1H WORrFQ6J9XmWwwNh4njzf7ASNCfl/GlVWxV+d5+djxHi7Qmdg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 99b83d11 for <59254@debbugs.gnu.org>; Sun, 13 Nov 2022 22:38:12 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id eabe7a76 for <59254@debbugs.gnu.org>; Sun, 13 Nov 2022 22:38:12 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 090b28cd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 13 Nov 2022 22:38:06 +0100 (CET) From: jgart To: 59254@debbugs.gnu.org Subject: [PATCH v2] scripts: describe: Add branch information to json output. Date: Sun, 13 Nov 2022 15:35:49 -0600 Message-Id: <20221113213548.28168-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59254 Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * 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 ;;; Copyright © 2020 Ekaitz Zarraga ;;; Copyright © 2021 Simon Tournier +;;; Copyright © 2022 jgart ;;; ;;; 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 13:42:46 2022 Received: (at 59254-done) by debbugs.gnu.org; 19 Nov 2022 18:42:46 +0000 Received: from localhost ([127.0.0.1]:41143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSne-0005Jk-8Y for submit@debbugs.gnu.org; Sat, 19 Nov 2022 13:42:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSna-0005JI-Ev for 59254-done@debbugs.gnu.org; Sat, 19 Nov 2022 13:42:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owSnV-0000Kn-6J; Sat, 19 Nov 2022 13:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=uRH1OGwfR4s0/cyysymeW5O0hfgG0cA5PVQScBrMvZE=; b=p06a6EKUQMynBFS7qEVX gtrsfHUHZWBUn3zKqhV7YKZFvS7JpDZMAm66osM43NpSn11xnsE2NzAcWcjxCaKcTAcaMZFaZ1uGP tAKzt4L9lElnuUeqw4Yc5YdyFqRyy6mPdGQe+JVj2W6m2LQM8cMzyQSaQQM1a469QSfdc2//V1MVB U94+ohUfGFcJdHrqjDaq/D1olQLZ23wi9oTEGCh+EAZtUeMmfFNGireemK97x0wh2GiJQj9GT9WL6 KMYcm7emQSTvBDoettod3rI0j+cMhOrvjl8AA76DaBia1s1phYD3YOgL9ef5hy8y1PC49jACQ3c8D x0YYDamEkEGNQA==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owSnU-00079b-L6; Sat, 19 Nov 2022 13:42:36 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: jgart Subject: Re: bug#59254: [PATCH] scripts: describe: Add branch information to json output. References: <20221113213101.27519-1-jgart@dismail.de> <20221113213548.28168-1-jgart@dismail.de> Date: Sat, 19 Nov 2022 19:42:34 +0100 In-Reply-To: <20221113213548.28168-1-jgart@dismail.de> (jgart@dismail.de's message of "Sun, 13 Nov 2022 15:35:49 -0600") Message-ID: <87mt8m946d.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59254-done Cc: 59254-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) jgart skribis: > * guix/scripts/describe.scm (channel->json): Add branch information. Applied, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 13:44:27 2022 Received: (at 59254-done) by debbugs.gnu.org; 19 Nov 2022 18:44:27 +0000 Received: from localhost ([127.0.0.1]:41159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSpG-0005Nd-UH for submit@debbugs.gnu.org; Sat, 19 Nov 2022 13:44:27 -0500 Received: from mx1.dismail.de ([78.46.223.134]:31506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSpF-0005NQ-Ag for 59254-done@debbugs.gnu.org; Sat, 19 Nov 2022 13:44:25 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b2eefe08; Sat, 19 Nov 2022 19:44:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s= 20190914; bh=cU0En1BIozbtDvbpcvMOx8HQE/+3B5bEBdRg7BtQaiY=; b=GCl YsZGIBA8V2qRjXhWA0D6RwGV9xD4tIrvlIwp9FTNeq0dpmd0TxmO1d63gF3rJAJX B7frR9mhPc1OqQLTpXRR1iWAYmJTVk9NCk/huNKcqLI5wshkOKUYGU0wKyxZx687 5MHYq6246xqtsEEN4h1k9BKBZebsaqpkYRyEDMGSEvn19f3CX2ECC8BxqRGbA5Q2 NC4eutm5NjgTs+Xppb1Iw+yhHWMtY8bxqTPZDxrUjZDjtCxCPun7pr6nnbwysHNk F8ozIgQ2W4Yz2LzX22CwMpiCdgrrcKqK28b17b+LZWI3VN0WRhNSGIur/MZ3bzuu jBuqLizE7oCJqDRrPpQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id fc21c9ee; Sat, 19 Nov 2022 19:44:18 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 40d42550; Sat, 19 Nov 2022 19:44:18 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 454bbf5b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 19 Nov 2022 19:44:18 +0100 (CET) Date: Sat, 19 Nov 2022 12:44:10 -0600 Message-ID: <20221119124410.GB22725@dismail.de> From: jgart To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: Re: bug#59254: [PATCH] scripts: describe: Add branch information to json output. In-Reply-To: <87mt8m946d.fsf_-_@gnu.org> References: <20221113213101.27519-1-jgart@dismail.de> <20221113213548.28168-1-jgart@dismail.de> <87mt8m946d.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59254-done Cc: 59254-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 19 Nov 2022 19:42:34 +0100 Ludovic Courtès wrote: > Applied, thanks! Thanks for the review! all best, jgart From unknown Sun Aug 17 09:10:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Dec 2022 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator