From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54293@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164666586220788 (code B ref -1); Mon, 07 Mar 2022 15:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2022 15:11:02 +0000 Received: from localhost ([127.0.0.1]:54389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRF0l-0005Ou-Cm for submit@debbugs.gnu.org; Mon, 07 Mar 2022 10:11:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:58068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRF0i-0005Ok-Um for submit@debbugs.gnu.org; Mon, 07 Mar 2022 10:10:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRF0i-0008Kv-Qt for guix-patches@gnu.org; Mon, 07 Mar 2022 10:10:56 -0500 Received: from mail-tycjpn01olkn2036.outbound.protection.outlook.com ([40.92.99.36]:62824 helo=JPN01-TYC-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRF0g-0007Zo-DU for guix-patches@gnu.org; Mon, 07 Mar 2022 10:10:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YdAgraY2EmVPDU2ppwc6OBDavzskO9bK3hntlRp8z8ocHA95uwjzx+vmPNYNM6moeMfDY2NnvMZ88jTBIuUBQ6ZKwccbs6y9viFISlpwsHvJSCZ1re98G7x6ZUpbeCOMcWVPQVFlsn7kfNy8WOhx0hsUcoEUU+w2V6K7BHA3qUSzX0PUtalz5D3v/yl+G4laMTSBsKj0ugTSDhUl6dIpSOpxNMeFnRhh7hWIDV43VsnBUu2vH3gobRCYdtjsA/6teUzLm3VdjFwPZoh4jBEFw+yAHoOlv2VnoHUXEI6xioOyzbCVDYdrgxRMUp4CLKzPkKbK7h5xTlpmzhFqCv73cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=S8/JDdZzanCsbGgr1wOQLKsGV/9whUAc43O3EZdTKbw=; b=UhzUApzM5Xq4A+l4DXBVW+env0M08NAVbELgssaUm277Lq4Z1CvdOj9AcVLKBSn6W7pR7d//8y/9mU2kNNkS0eiZ94A8BJ36glfEq46Mqb/C6J+RuMhmElOkTXsNocyW7lT4HUdNZ3FAWobVAl/dE1G8GXgdjvo1IpdGaqZ9pnESGA0vqBdHtsFyqssWNE0Avv+Bojugrv10kZcVNdmd62PIOkNvup0KgEz+xqBCmkKE7LveQpzsX3ra3hMdmIdzKqRmMMoi1D0LrNy3it9r6aig+B+PZe6NbZcv/3JWjRBzZqigfvXACZv4ANWmFK8L3dW+4FUvxu7aYodLAp9LeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S8/JDdZzanCsbGgr1wOQLKsGV/9whUAc43O3EZdTKbw=; b=Wp6b+pq+/9J7nMW+APVTxddpZ8tnKxWbQjewwlZ748sI+Yx+v3bAH0k+TMYKpi6PeuWw4lNDDlWurp4CqnyWHTga9Fty5qPHF3t0Cd3rXgnYQpa3g9bf6wznFdkUR4BvmNDplWFDI0hHvNtYj737dHPAkr7yjuj/HSHhAEJbva+0XnLNnZ04VQVGXohJUBkEZQ7mI5shA7vVP0hoFV7uCP3vwEMRJ8/OlNbVMQjmLJJxEnOg0ZQZhkZSI+KKyhbZkLmYiwStqBMVDy3Y2E8Xh2dxC+jVugBUwoCjFjxUbWCWcpI5doX1UvvnJrDizdK26/xR27+MmnaAt08BPzGRDQ== Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) by TYCP286MB1282.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:b9::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Mon, 7 Mar 2022 14:51:09 +0000 Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64]) by TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64%5]) with mapi id 15.20.5038.027; Mon, 7 Mar 2022 14:51:09 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Mon, 07 Mar 2022 22:51:03 +0800 Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [NHz8vxalfnfqOImvSw2K40Zu/6KypvYvwli6PV/buysPmYB3PkHbC/DiyrSup4KR] X-ClientProxiedBy: HK2PR02CA0168.apcprd02.prod.outlook.com (2603:1096:201:1f::28) To TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) X-Microsoft-Original-Message-ID: <87y21lyfxk.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0abdfed5-7052-4749-3ac3-08da0049e8aa X-MS-TrafficTypeDiagnostic: TYCP286MB1282:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: flYMqEK2C/3v7XUPAxj2e3zBJtDSqEIK4hqHu2BwY42Gjmtx0cP6MP5OZOUIiI28b4kWBP34/1Ro7UyUn3k7wY/RdLq+f/5eXXuC9U37Laq5EfLxOlfAiNdb2KSGLPs/b4d7uTXmqORsSgW0EV/eSwQ3o/Wnpd7sg3mDjFTm+tuIzNf8jlRrZvo3vUIy0MVpoxekk8tFw9tYiqEgrg7/upr10RgC2TkJX9aP8BI1xUgQfY8AXZI8juc2yXDaeiRtte2VOQjLbn43L+eaxGe8q61xnRCjoJNCUgbQ/dtvG1mfuLX0kuLztnAEADb/Gm7d9Ndb2fq1ScPbCLDbnBBAM3cPXrzDTDdIcr2SNCJz0f2WNfpmZHKawwl46rCgVPeZIgjRH6eO82TirWB77Rms+RSi70cVGHABsNC8tt0NWVt8yIPVOa4g2DvA6PcwXRyDcFm36d1D++VEkIMfgZRRa9sj5W2nY8xXfoBTGDKFQWhbB+t05Ph5kvA/Rtk8HAgW8pMjdLBlk9pz7KnY5okhPulo6HZKBA/u9Nf8uzaLM4jOYK3vrETHm/G4MAowuTuvF+kbjs6Ahe9r+kPVGslZFg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Bu9Fz5WUoXjiUt5OI4vkgBadBOL4XEk6jKYMEkcw1Yp17ym9zclKtC7roUUD+Kx0SQi3ERbG9pOYo2ayUucgLn85/S4kx+Ol3gfIdgO1L1wbavOQmkuTB5Bg2dTlwOUvcD3bhc5q3eGzqt8Bu0NoUW37Evvl7+1cxYOEBsg9qHv0XB6yM/XblrGJLnKOf8mAhhmh5eFnzWiHVGXrH5DHxIYfR1ACgNlWqw6wwdlrLf4Mhtkbp0laKDUHsiUNgsXnyjCY0xUd96mgYPcoLh2ovHyA3g6NrobLSCzFpWF6QmeZVgNEYoSxwK8Q/ZTyb2PxAP5dfAvEv82+He7hV42Opm95+82Jwl8mjBF6n0xXB7wawMy1+mddRzhGIA8duQeg2LItrg28ymoRbxFzz6svQIlHqt3cq3MgYjulEydxl3dNwxI1wgFkZRSlMeMfOe0QpoxwCcjD60dJIBFS1/dS8cPdkjcZW62512TDSHGjGRKH/4iRCfwGlE9UcCa3TTWvkt1Ss35x1ujr3XSqQ4Bqsa5zL0gBYkdnTAbZp5xZ77lHzcZq85QHzPtIzBtRjnZUZncy1+LvBz2TA9BJqVNdhhYcMF6JANe37hyu7+LDmNA6w80QjYnYjcuGCfyFP5mTymLsGZOcSnOsbKzVowDTSgH4nBa/nJ+5qHMopK6r6mTlaixv5ZkDqo328cZMxsux91p07D/IfRXjUhK9b4jlXf6hcB8FvH8QEqt02TbmO8xtlqheXRgtJuMF505Pb6WdmD0DItjbYP2IZI0tBz+ZwqLUIhK7Sq1/TW1pueHZo68JXV0bYQ/hrh5PG4+nX1Mu0kI8KvafcaPulz6I1obaIva53YUJIZ5JpQa1WOMZgECn6hHdXHbpr0ugp9lFXheL4LvS8N52HJ1/76FaIIA9e8R6IGvGysfN3NXGjdQBpx8Yk4CVwGki5XiCcGioW3BNfT6usLFi8qMi1vGM0Uhxa2LBMeC3NGpwx9ow8bBNW8JhN13g3Re7Jln4zEY8iFYAgiADAykCcOmAASKMTR8DFw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0abdfed5-7052-4749-3ac3-08da0049e8aa X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 14:51:08.9786 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB1282 Received-SPF: pass client-ip=40.92.99.36; envelope-from=iyzsong@outlook.com; helo=JPN01-TYC-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) 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.3 (--) --=-=-= Content-Type: text/plain Hello, with: --8<---------------cut here---------------start------------->8--- (service home-git-service-type (home-git-configuration (options '((user (name "foo") (email "foo@bar.com")))))) --8<---------------cut here---------------end--------------->8--- We'll have git in the home profile, and GIT_CONFIG_SYSTEM pointing to a file contains: --8<---------------cut here---------------start------------->8--- [user] name = "foo" email = "foo@bar.com" --8<---------------cut here---------------end--------------->8--- Which set the system-level options for git. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-home-Add-home-git-service-type.patch Content-Transfer-Encoding: quoted-printable >From d161786c675a12f9cb2bce2bdb965d65eb5281ac Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?=3DE5=3DAE=3D8B=3DE6=3D96=3D87=3DE6=3DAD=3DA6?=3D Date: Mon, 7 Mar 2022 22:14:09 +0800 Subject: [PATCH] home: Add home-git-service-type. * gnu/home/services/git.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/home/services/git.scm | 95 +++++++++++++++++++++++++++++++++++++++ gnu/local.mk | 1 + 2 files changed, 96 insertions(+) create mode 100644 gnu/home/services/git.scm diff --git a/gnu/home/services/git.scm b/gnu/home/services/git.scm new file mode 100644 index 0000000000..2c3f87fbab --- /dev/null +++ b/gnu/home/services/git.scm @@ -0,0 +1,95 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2022 =E5=AE=8B=E6=96=87=E6=AD=A6 +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu home services git) + #:use-module (gnu home services) + #:use-module (gnu services configuration) + #:use-module (gnu packages version-control) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (srfi srfi-1) + #:use-module (ice-9 match) + #:export (home-git-service-type + home-git-configuration)) + +(define (git-options? options) + "Return #t if OPTIONS is a well-formed sexp for git options." + (define git-variable? + (match-lambda + ((key value) (and (symbol? key) (string? value))) + (_ #f))) + (every + (match-lambda + (((section subsection) variables ..1) + (and (symbol? section) + (string? subsection) + (every git-variable? variables))) + ((section variables ..1) + (and (symbol? section) + (every git-variable? variables))) + (_ #f)) + options)) + +(define (serialize-git-options options) + (define serialize-section + (match-lambda + ((section variables ..1) + (with-output-to-string + (lambda () + (match section + ((section subsection) + (simple-format #t "[~a ~s]~%" section subsection)) + (_ + (simple-format #t "[~a]~%" section))) + (for-each + (match-lambda + ((key value) + (simple-format #t "\t~a =3D ~s~%" key value))) + variables)))))) + (string-concatenate (map serialize-section options))) + +(define-configuration home-git-configuration + (package + (package git) + "The Git package to use.") + (options + (git-options '()) + "System configuration options for Git.")) + + +(define (home-git-environment-variables config) + (let ((gitconfig (serialize-git-options + (home-git-configuration-options config)))) + `(("GIT_CONFIG_SYSTEM" . ,(plain-file "gitconfig" gitconfig))))) + +(define (home-git-profile config) + (list (home-git-configuration-package config))) + +(define home-git-service-type + (service-type (name 'home-git) + (extensions + (list (service-extension + home-environment-variables-service-type + home-git-environment-variables) + (service-extension + home-profile-service-type + home-git-profile))) + (default-value (home-git-configuration)) + (description + "Install and configure the Git distributed revision contr= ol +system."))) diff --git a/gnu/local.mk b/gnu/local.mk index 9bfeede60f..a5ea94b3a1 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -80,6 +80,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/home.scm \ %D%/home/services.scm \ %D%/home/services/desktop.scm \ + %D%/home/services/git.scm \ %D%/home/services/symlink-manager.scm \ %D%/home/services/fontutils.scm \ %D%/home/services/shells.scm \ --=20 2.34.0 --=-=-= Content-Type: text/plain I made 'options' an sexp value since there are so many git options (see 'man git-config'). When `options' is invalid, `guix home' will reports: 'guix home: error: Invalid value for field options: ......', is this acceptable or how to make a better validation error report? I can also symlink the generated gitconfig into ~/.gitconfig, but with 'GIT_CONFIG_SYSTEM' it can be used together with hand maintained ~/.gitconfig. Documentation is lacking, I'm still bad at them... Any interest or review feedback? Thanks! I'd like to write more home services for msmtp, emacs, foot, etc. to configure my whole user session :) --=-=-=-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 17:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667591630612 (code B ref 54293); Mon, 07 Mar 2022 17:59:02 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 17:58:36 +0000 Received: from localhost ([127.0.0.1]:54601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHcx-0007xg-SE for submit@debbugs.gnu.org; Mon, 07 Mar 2022 12:58:36 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:50500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHcu-0007xV-PE for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 12:58:34 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id 3VyW2700D4UW6Th06VyWRq; Mon, 07 Mar 2022 18:58:31 +0100 Message-ID: From: Maxime Devos Date: Mon, 07 Mar 2022 18:58:26 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-3G31pzuRbGCN1G2iNiBc" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646675911; bh=Er5iEAhNDriLwIS2QfZ1ZTUXZBtpNWzd1Z8B6tgTYSM=; h=Subject:From:To:Date:In-Reply-To:References; b=Ki8x+8hahvFdhVUnStSFkPKaYZoTVA/fIqzn7jc1irCYltKuOXnq1gTgmgKg5cmeT Jvld4WOWF3Qkd3aNyAMwwFNlpEtVwhrP2kgMQLIrQsBY+/oZkJyVgjFuUarPlxU6cV /iw60LSxhAQDuP5HjogRXzfQEgH+nIRBAhfAZUc+a7pSX56dzqIwfMizRhAG4fACAa QNrKe/TjxkAzY3An/gyc8+eYuWlsGtiHVvLbEIP1auTRtFtaeXYTA8lBBhHOl4UktF VoP5BIzZntN9H2oz0D1AcCxtT94BpBDgmt4lP9xU+HnNEv13XCuynLOg9GfOp/ERxm fI+es67SXNv1Q== X-Spam-Score: -0.7 (/) 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 (-) --=-3G31pzuRbGCN1G2iNiBc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (for-each > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (matc= h-lambda > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ((key value) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (simple-format #t "\t~a =3D ~s~%" key value))) What if I want to set the key 'bar' to the value 'foo bar ' (without teh quotes, but with the trailing space)? If I do =E2=80=98git config 'foo.bar' "foo bar "=E2=80=99, then the following is added to .git/config: [foo] bar =3D "foo bar " so it seems that some escaping may be necessary. Also, what character encoding does git expect .git/config expect it to be in? UTF-8, whatever the current locale's encoding is, ...? Greetings, Maxime. --=-3G31pzuRbGCN1G2iNiBc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZHwhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vjDAP4xrRErdFEgkiuIsyECMvRCWvlz i/N/OXgpWiDbRmarwgD+IKnNpiRFbReFoXSx1rGM0iENmyjbMri7n0seNQJzrgg= =11KE -----END PGP SIGNATURE----- --=-3G31pzuRbGCN1G2iNiBc-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667606530972 (code B ref 54293); Mon, 07 Mar 2022 18:02:02 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 18:01:05 +0000 Received: from localhost ([127.0.0.1]:54606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHfN-00083T-9b for submit@debbugs.gnu.org; Mon, 07 Mar 2022 13:01:05 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:47322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHfL-00083L-Rg for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 13:01:04 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id 3W12270074UW6Th01W12f4; Mon, 07 Mar 2022 19:01:02 +0100 Message-ID: From: Maxime Devos Date: Mon, 07 Mar 2022 19:01:01 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-eNd9v/GddGmQ3quh12ql" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646676062; bh=HQWokpFaTY6KAUnnd5KGCl0CPm1kh16S/AD3aps50IM=; h=Subject:From:To:Date:In-Reply-To:References; b=VOQBpthjZxnXRBn8/lOpOnZbrMWuC7v4gCprdDcS1/B997s/3BkCPqzxsPpsnUoJv ht7DJ4wr25Lh0nVo0Nyca7uH4UUN9GfrvpVfU2XBXqa61LrmwYp2jYMHO9vYc+X1NY Z03iyjW/38KTygxiCpk0XOm8wWCylGEKWAYE1o/F58hN8keVhw/hDm5clhCCF1d3Gh fyKjHyRULtAP3VKXCjDDN1sUJJi3d2JkXCHQprXL1cY7XTPsjmFZU1fMWfb29rxwvI xOCGTN9mZZIXU5H5BPcZP49zbUHJaIHx6JXYcu0VaGHf+npo7PU3wnAKgh1N0HUL3w lDvxlQemLAhVQ== X-Spam-Score: 0.2 (/) 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: -0.8 (/) --=-eNd9v/GddGmQ3quh12ql Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: > +=C2=A0 (options > +=C2=A0=C2=A0 (git-options '()) > +=C2=A0=C2=A0 "System configuration options for Git.")) Instead of this ad-hoc alist structure, how about introducing some structure with records, like done for other Guix services, e.g. 'openssh-configuration' and 'guix-configuration'? Greetings, Maxime. --=-eNd9v/GddGmQ3quh12ql Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZIXRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7h5GAQDKhq/11yJq3r3rilLgxDGmxy0S 9H7uSA3X17irwP4edQD/TLqPBQZqtftAI8kKmfGhprQJMmFkVI6twnx7Fp0teQc= =aVHY -----END PGP SIGNATURE----- --=-eNd9v/GddGmQ3quh12ql-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 18:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667616531124 (code B ref 54293); Mon, 07 Mar 2022 18:03:02 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 18:02:45 +0000 Received: from localhost ([127.0.0.1]:54611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHgz-00085v-J5 for submit@debbugs.gnu.org; Mon, 07 Mar 2022 13:02:45 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:46212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHgy-00085n-4n for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 13:02:44 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id 3W2i2700M4UW6Th06W2ivU; Mon, 07 Mar 2022 19:02:42 +0100 Message-ID: <4e224f5bc48ffbd9f0df21eae96fc5afec251546.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Mar 2022 19:02:42 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-uwvFcujTrXIAzBCMgulb" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646676163; bh=yR+pfDAGTyNIfCvRUa6kkKmb1yn8+fg4Rh0UsmZZzxc=; h=Subject:From:To:Date:In-Reply-To:References; b=TE2rFVB1h2ZYY/IQp7Fy8gp4dT8Zm/feMMSwtzVycfFI7vW6FekQXsudWDDvMwzAp idwdmFH1bb9ZwvsZvi2mCpS157W59krCxLinAId4nqcNvBh43qVKN8vZhnHyK1qUmL f0BbdTFh/83ncXeRlTb4GgyE5Pie410vQAPKNhWsh4bbfMriGJIHKY0xUn7VEmDl5l /rL2/CWX+R65AUabDFlGAo/wYCsbGMDlQuLf5uU7q5aMNem98uZ1GI405MAlkz4nBq ipBLxjgPlRCi5uJhuCH/Tztf3GR+I35ojmY/nyw/OWol/Pz/TJCAIJltK7rZn7jdbA kqIHYA7PZgZ6w== X-Spam-Score: -0.7 (/) 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 (-) --=-uwvFcujTrXIAzBCMgulb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: > I made 'options' an sexp value since there are so many git options > (see 'man git-config'). This can be solved with an escape hatch like openssh-configuration's 'extra-content' and by adding support for new options on an on-demand basis. If there are lots of options, that just means there's lot to do, I think. Greetings, Maxime. --=-uwvFcujTrXIAzBCMgulb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZIwhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ugCAQCWKe/PTl/WDh8+bHgY0OK0aYv7 p3AWw2sWTpvtQGBdKwD7BVe6Xhpr/9JO0zfv+HlLFlISoy5fCIBGBi+Dt/lcnwY= =6xfB -----END PGP SIGNATURE----- --=-uwvFcujTrXIAzBCMgulb-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667628931326 (code B ref 54293); Mon, 07 Mar 2022 18:05:01 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 18:04:49 +0000 Received: from localhost ([127.0.0.1]:54616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHiy-00089C-Tt for submit@debbugs.gnu.org; Mon, 07 Mar 2022 13:04:49 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:52858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHix-000893-Pa for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 13:04:48 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id 3W4m2700K4UW6Th01W4mJA; Mon, 07 Mar 2022 19:04:46 +0100 Message-ID: <0bac942818fbe46196f420a1df6632a860ae29a1.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Mar 2022 19:04:46 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-HEB+LrcVqFXPUNotqn8L" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646676286; bh=H7mjAoAt55WhIoa+dkNEncn2qdXWQc9IKkap7MguuXk=; h=Subject:From:To:Date:In-Reply-To:References; b=TeF9yd2//vePNtjtLDOmT2oO5J6qFZRQybBmfsMEMKcTBaVyc8cE/UXWO4rAG+YM0 kEeqSENrh9YCgVUS2lnxEijwMavpyUvlVbJ7Lg3/DCeAIyBqA18zAwrT5nhf8Sr5pw IKrniuChcE6CsDirtL2i36hBU1IoNj2n1Xn8zBP7V2BYJcUo8vSUAob8OT3IpYICKx XxSCqNCsJVQC+XI0VflYNh+RqrquYFHXWpFo+NNd9yo0ni8f59Ye6hTd5eyWS/GqVz ZsRbAapDtlBB3+476qB/Whf+k4QUNwjmrxfUNyueQIQnsRBITsrXIvQbsdccA1nTNQ //uLcRN8kZT2Q== X-Spam-Score: -0.7 (/) 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 (-) --=-HEB+LrcVqFXPUNotqn8L Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: > I can also symlink the generated gitconfig into ~/.gitconfig, but > with 'GIT_CONFIG_SYSTEM' it can be used together with hand maintained > ~/.gitconfig. The GIT_CONFIG_SYSTEM is less stateful, I like it. There are multiple variables like these though: GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM and GIT_CONFIG. My guess is that GIT_CONFIG_GLOBAL would be appropriate here. Greetings, Maxime. --=-HEB+LrcVqFXPUNotqn8L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZJPhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pZdAP4pD8en/OfbVflwaVZlBQvg0D5I MUJaWxNySrehRGhyAgEA8G5cUUNw/AY+ySJqcCfSIx6VA38T6P1fIwZ58jrjogE= =3+ru -----END PGP SIGNATURE----- --=-HEB+LrcVqFXPUNotqn8L-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667667931967 (code B ref 54293); Mon, 07 Mar 2022 18:12:02 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 18:11:19 +0000 Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHpH-0008JW-JB for submit@debbugs.gnu.org; Mon, 07 Mar 2022 13:11:19 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:59348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHpG-0008JP-Cx for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 13:11:18 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id 3WBH2700A4UW6Th06WBHiw; Mon, 07 Mar 2022 19:11:17 +0100 Message-ID: <4802fd5bd14e6d73ca8205edab1e38580db7dd0c.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Mar 2022 19:11:16 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-M9A7dIJytVFNzWrrlTBS" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646676677; bh=oNlCkXpfhpEikXwGiMUyUtkEwd6hRsFNk4cZL6RUfYw=; h=Subject:From:To:Date:In-Reply-To:References; b=mDcxAXOSh+94sJkeKBFFpRG3PYh0Q4MvcMXSMCkJEIVDYuIVITxAu1YEuh+1BAxdL fCujEZzbQFpQWVgouB7zvPOPIbIlnoLxX/flhvOE5hv5tVcBkYSon2Xm1lpIOCTKZl JSpCWB1qwNeRU0pa2uv1OgM5dHsfsJ8jMlge2o7wUcqc3QdAV3vEdOeZceGDojttw6 9mIexG2yGRs2/aBWbmBU9NBbqbatW1TQ6br0jqyT0wfdCLpaQGY8ZSxOLlNJ4d6OJy 19jOm649JzSyP96KPf1RmrYQzqSlRzfXNNPEN0bAs2y4VvU3mat+0TiU5nnVu2MIfx 96t0m5kXooeZQ== X-Spam-Score: -0.7 (/) 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 (-) --=-M9A7dIJytVFNzWrrlTBS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: > Hello, with: > --8<---------------cut here---------------start------------->8--- > (service home-git-service-type > =C2=A0(home-git-configuration > =C2=A0 (options '((user (name "foo") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (email "foo@bar.com")))))) [...] How about providing an option for passwords? E.g., (home-git-configuration (user (git-user-info (name "Foobar") (e-mail "Foobar ") (signing-key "some PGP fingerprint))) (secrets-file "/home/foo/the-password") (smtp (git-smtp-configuration #;(password "12345") ; not recommended, use 'secrets-file' inste= ad ...)) (with some appropriate documentation) secrets-file (not interned in the store): =20 # I don't remember the exact option name smtp.password =3D Foobaz the produced .gitconfig would include a line [include] path =3D /home/foo/the-password --=-M9A7dIJytVFNzWrrlTBS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZKxBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7otOAQCOnttc3JBbFIOvNw4qXeXr72BZ /ssGKKifN/b8UkB3kwEAn9iiJoSD3QQIHkuwYcIWZ66EEaip1AMyRSXAckPD7wo= =V62F -----END PGP SIGNATURE----- --=-M9A7dIJytVFNzWrrlTBS-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Mar 2022 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164667677932169 (code B ref 54293); Mon, 07 Mar 2022 18:13:02 +0000 Received: (at 54293) by debbugs.gnu.org; 7 Mar 2022 18:12:59 +0000 Received: from localhost ([127.0.0.1]:54632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHqt-0008Mn-FL for submit@debbugs.gnu.org; Mon, 07 Mar 2022 13:12:59 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:36882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHqr-0008Me-3Y for 54293@debbugs.gnu.org; Mon, 07 Mar 2022 13:12:57 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id 3WCv2700U4UW6Th01WCwlT; Mon, 07 Mar 2022 19:12:56 +0100 Message-ID: <5efa8b6934c92e87751ca5f5c38f2ccfb750ca00.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Mar 2022 19:12:55 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-POiF/R8f5SUZlk+KIlnG" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646676776; bh=c6jcmxeXowjnft73+bm/wvg5NqZvyg/IgyWa14V/sGU=; h=Subject:From:To:Date:In-Reply-To:References; b=fPlm4szGmmNMAezq+I93RsbRPN3UHDU7CCSyvHDQNq+yBA4Px9U6lOBz/KYKaWNNV 53H6DtazMh7lxzqzfsoE6Id3NoY0wRvQnmp2N2hi9G3OMqQmz+XP5MeDiMZEFcM3J7 2Aqh9iEDVy4yO+Ghwd9Hck8DzG+YA+hNVZOWXcduc2EBRw1Yd8SMQwFIDlunop3bH8 mOxiby1z/33Deczm0OdaIFBglWMYT6WuoGcW//4hbIHosI2Wh4/AhziAKs6VQtRSg7 xhjyLAR5f3cSqkzEMfo4QKUeGHw2zH20ihvTxWv/gHFlEipCe+mf03OS1i+w3Po5Mz Jk2C0jb7dnK7w== X-Spam-Score: 0.2 (/) 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: -0.8 (/) --=-POiF/R8f5SUZlk+KIlnG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maxime Devos schreef op ma 07-03-2022 om 19:01 [+0100]: > Instead of this ad-hoc alist structure, how about introducing some > structure with records, like done for other Guix services, e.g. > 'openssh-configuration' and 'guix-configuration'? To elaborate a little, I think the following options are the most important to support: user.name, user.email, commiter.name, committer.email smtp things (for git send-email, important for contributing to guix) pgp things (important for being a committer in guix) Greetings, Maxime. --=-POiF/R8f5SUZlk+KIlnG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiZLJxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sr4AQCJxOtB8qEKOK/pPF4kxoYWh7Lf rBmcNWtLZFmHYrckgQEArPoVwXxaPa+M5xHHUKrAoKnY6SNW3k/xwSxFxyXz8g8= =+ZqD -----END PGP SIGNATURE----- --=-POiF/R8f5SUZlk+KIlnG-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Mar 2022 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164682832126143 (code B ref 54293); Wed, 09 Mar 2022 12:19:01 +0000 Received: (at 54293) by debbugs.gnu.org; 9 Mar 2022 12:18:41 +0000 Received: from localhost ([127.0.0.1]:58744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRvH7-0006nb-H3 for submit@debbugs.gnu.org; Wed, 09 Mar 2022 07:18:41 -0500 Received: from mail-os0jpn01olkn2060.outbound.protection.outlook.com ([40.92.98.60]:30433 helo=JPN01-OS0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRvH6-0006nL-1Z for 54293@debbugs.gnu.org; Wed, 09 Mar 2022 07:18:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WVMC8bI04eL+JAZD/9DZJQRrTaD5My0rEspMDxL4lKAFNf22XxbKm6+x1wwpDk7Dqo9ZulJxCBzQU/qDLEUwThksKHjatlB/5CkKi8jb7wWbQ6MgUtMG1775xZJuFewYPzJFBcJcct6FaxCWrdmSF6nW4dHPzM1IK0L0XMgYz/EHuKe2jR6Y6s/W9B0Itj1Vh1WwgPL2JtjQpPuk5w0ZAxII07PIym2HECrEQWej2Ew3IEicPQAWptw9349uEvG1FAVqBaD851oOM4ig35RxLlipvR7bAkEYqO6f6hYKNXn0fsbrVMCDTdTwqfbL94WDZQbbJyDljE35of49U6czrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CGsLNWB2J2rZqjdyeJ26sYzgGmE0WOyCOi6DVZ9Xh9s=; b=XHcikuxPsddl7F+txoqENj7rLKb2823EHe80h5csUANSfQ9CDHHHs0RTuinlgymvYyDIYY5XmCNKXjWHzHTCe4snac1vd+tHVYscJUIZvGWKDDXFclbX7avZajER52O7KPbixv9SWJJV5pSnc6rrp6xlC5nXc9MQ/9NwXZm6w1SIOVYJQUjXhwFXRTi0ikX/NcKUvA5ZhNRRpZNOawGqSNsxcDM3weguzuFaaXb3BI/LrKcvrMQOWjdHEuv1oPLo9Y8s2XEKcHBck24Fbu6ULfgZ7sxK4v0g+YTt9IGimpAS2WpzPQhrqbc+HyFghEtmFWp+/7Pvvi+VmS6hLl/mVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CGsLNWB2J2rZqjdyeJ26sYzgGmE0WOyCOi6DVZ9Xh9s=; b=XdqfPo+xpWrVIbD55u2/CJM3Oeiat++mqNXERnJy7lznoY1r6qr+ciIC+LlVDu/KpTPQwzsSLJXv2jQlstkGFvkwuzwIJKrNWJuLsCMXaQRuAr7mbVky7JkHedcI58u7jcfRicwf+N1/7OpFrSelkkvq9N1QFDf5+mS6yX9RB+M366Iv+WlhXWAoCl4e+6EW5Ps3HS4p20mdeuWniGyBKiAvI0mxkIjsdJ/EsevyTOtJI2pnuKieo7mgCOWWxkJpFJNlDy5alKcWpM7A2MiyHOZfhYD15X0gBuNKsx/n5peS3xw3hPISv2snNhzRBR6r2vs0qxE1XkbeNkNJnEOD2w== Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) by TYWP286MB2203.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:170::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Wed, 9 Mar 2022 12:18:32 +0000 Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64]) by TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64%5]) with mapi id 15.20.5038.027; Wed, 9 Mar 2022 12:18:32 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: Date: Wed, 09 Mar 2022 20:18:32 +0800 In-Reply-To: (Maxime Devos's message of "Mon, 07 Mar 2022 18:58:26 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [NHM1fwaXK5/aUovQjqFPP0GXVP/KEof2gkZ+D1adXtNFQ5Z2skH/H8e/ktl5hY/x] X-ClientProxiedBy: HKAPR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:d0::18) To TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) X-Microsoft-Original-Message-ID: <87r17b2uav.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 809b49ad-782d-4615-2f39-08da01c6ecf9 X-MS-TrafficTypeDiagnostic: TYWP286MB2203:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v727unib5VS32lh8WmJZGSfvcgyu6MrwkSOeOR/v3/97T9PuaivexErNgnig6mHKMavry+nTccQDjOGUy5+cpP27WWz03ET11gYWGpXvbjRGL36phjPIM4m1DhSqsSagj+dE4Jb7Rjbk9t6/1dl++M3BQB5Uh51CefdoYhLbSVr9JHxObGfmSJqC26JpBjeWHl+SyrfLYcl9nlAYro7HUu/bi6yZSsQw3ZZi+Kp93lijkJ7KWmFhNLgbzEeWuEyCRpqnsnYRJanGuM1NvLe1+h4NmRgdqRFWgJnXNbhB9ZsR9zdrhxabEPxeaTYmZHVgFUw2TqWUOyP5CKQSghzmk1pyl0uQPSUEI8v3eFTtGZU9wWtWQRB6nP1Nov/j4HvA/5jPrtQXCEPv3yZq4Wx9lZxqJFHZvjOeFMl9rsUYYkzZABjybgFspB12PQMQ05FDoHKMuvgTRz4dZ7P+UXBqFjZk/RIoR8Wxv9nb5hTlaplmawOVaX/vbkvFTJbANu90GdfRbHLO4U8zdgGrZ6zRMY0iDSMixeiiU+StU8gi7Cdr8lNObT3vlqE1YL2IWfQWLw69eazEpz7aIjaj+zOmOg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GfDorwnpiO0MRmToWa/kqR8hHR8vRBhFq0I7N5KgMfzUeNZAdbeau9h9J4ufwFeMv1FoSB6XDjf1t+E8vSTCtXNQJvnKYDHa6rZqNmKybVRWdqBxvSJuaxOasTymGFS9K25wi+a2Jl33A3JBnqAdLEOsriVpW3U1agAYtZWawPbJriOap7eQipSthi6vqBYDWGUSMWKgCaJCd6p1vaNFGHA4hIoUkQsUdbf3sxcRLpa0BH74Pf7Yw6PY0ua0EtPbMwfDRLHu+GIPJAlGtYPYEVKxRhDRjYmv44GA3Q2jy+ec65iXp50RoSmZnQyebjMhuH5qlSREELEpxPbqQ+AD9WQQ/fnu+ZCxpd4bN+3nJ3nwsX1Cw9WbLST4xTKwWH5pXsa1SzMCTYkqtZChI0grL7qnGO8ueislifOF13O75YrXlZmViQCsjGN7lL+kDqtMAHfrx9IeDblcRPTWoFhycObyMi0eDmMwY9D5TtXyW4xt+PkbxkzFDI5lyoqTfm0BY33IeDdTvidesKXmAPsG1DDdwkls6EBgaHXZRKXjyyMT/b7imo+aaWQpNldlZS159/5eKeDyRzzuYzxqosxNpuYtAeHf9zgn2anmEfdVMbnDsOWllqvr38wmgghSiT2ifU0iiK23qPOL/6eVze+2/ZyR0yRz4zk8YjWSEMqQbJDCP+Za6hqyihrAvLTxaAhtMX9hPKgywMp7uvi+bQtiJq5FELPR9b72VDt+bjKqKxPLKetZ3esIqOodC+qFaPmBR2VuQbdFGdHjXdOpfVEIfWd4ghAkNc55UlFioltU/Xj0zN8+6+vMo6tYZdMdmrlpQzyuD2GdJ7l6/DGSP6byiOqVgIxZ4mXdAggRZsKcRBfmrZxaOwBJB3yyvBNaX96X7tIcag2HbOVj1rSDJwJ+3cQwFsElPGwbwlwNnU2MrMBJHmiWd9UUt6hkmb5wWZmRq+ULdPHTZZZ18dQ50rpINoYQzbiMPxhxB//J7fSKK0Hkl3LG9ro/bGM8/mOJU7Y33HPBDqFClUKe9Vsaq8F7iQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 809b49ad-782d-4615-2f39-08da01c6ecf9 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2022 12:18:32.5076 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWP286MB2203 X-Spam-Score: -0.0 (/) 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.0 (-) Maxime Devos writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (for-each >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mat= ch-lambda >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ((key value) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (simple-format #t "\t~a =3D ~s~%" key value))) > > What if I want to set the key 'bar' to the value 'foo bar ' (without > teh quotes, but with the trailing space)? If I do =E2=80=98git config > 'foo.bar' "foo bar "=E2=80=99, then the following is added to .git/config= : > > [foo] > bar =3D "foo bar " > > so it seems that some escaping may be necessary. Yes, '~s' in the format string will use 'write' which will print strings in double quotes with some escapes. I think it's compatible with gitconfig's requirement. > > Also, what character encoding does git expect .git/config expect it to > be in? UTF-8, whatever the current locale's encoding is, ...? I guess it expect UTF-8, will do some tests later, thanks! From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Mar 2022 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16468302225444 (code B ref 54293); Wed, 09 Mar 2022 12:51:02 +0000 Received: (at 54293) by debbugs.gnu.org; 9 Mar 2022 12:50:22 +0000 Received: from localhost ([127.0.0.1]:58784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRvli-0001Pd-AW for submit@debbugs.gnu.org; Wed, 09 Mar 2022 07:50:22 -0500 Received: from mail-tycjpn01olkn2064.outbound.protection.outlook.com ([40.92.99.64]:50926 helo=JPN01-TYC-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRvlc-0001PE-7K for 54293@debbugs.gnu.org; Wed, 09 Mar 2022 07:50:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ahvkKPVLHatWs/AlYsTcZzzf4rLyqSYjKuJU7/C3FtmTzLAiHkW1xGSeB3Iry5IBKKl50tjV0zt/cCvb8DR3H43VQPi64NSiZgAjofI1XyxEJ89AwEurS02eFAaBlL9kf73xOBzza4zeNEjw7lUBmXUcQfgSaRMwegvvk5exMmxOU0p5AO5gUMynwQ+Tr6vSKakg43+im+y9KBYMliDdakVpIc1cVrzQ1+S02qBVwDDLxxMzSH82c/sIkdPCik+jZ/aYHs8gh3AU4aEAnD7pEzycyl0GgQqkhlDYTobstmg4Fcsi8t/y7XNLeLjSzAKTG9m1DGAv4BJI6bvu2lJUoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oCyZkkZSHG1nuxFcOyCTASFSh190WwR8yBbX3hX1BoY=; b=UMXIDp0aj3u8/a+EsqJzQ1EIrcNHvs3ulnYsJSmxlO4db2XPz4Gy3t6zWNau2a3OjtVNSWZbTKjAqSInnuoOZjRzrgrozcU5nyFnODfMICCB07T0GP7GWw7CjdwCrx0Yq9lXsj2yyn0egWRwZl7MrU3h+WXPHf5w0BXqsg+ZBHhQxMTA+DENGckhr5ruoOYke1Z3ke/FVUMKTqpLEheefJJi5jnBl8dW8aO3uvji1TXI7zJfvn6sdSmr8Qd+vpZ8kN5pu72Q5xDOEBONnm1V29EfEV2+2AFT42bY9RF2Bziyed8xVItM5oBKhVWTNaqEgHBfYE4zQPBvZGMNlYxfWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oCyZkkZSHG1nuxFcOyCTASFSh190WwR8yBbX3hX1BoY=; b=lji6wfZDTe1DcEerhAV5Ddpafm1stBtrTt+cYM/IWbOI5SPLjozt3ySElE2vE0iYByCDIA9/j6lUlU1A/xXr7IUoU19qOlE+/236Txpu17nwy49vVjqzB6KWLCIZdSAJiyexumEnN2onL70XkaHS52Yzmgu9V5bppTAZTfX1tvDgS3SM2hn9N3bMUl6x0NErLYt8zKgrB7/BG86qlpqi/2n9zVufcTTm45B2p/5f9NmtwOKYsEwmM68hGc6n57cXrRrrZ1NFof4224vEO6iaPEGny4zamoKe1ai1isZISznUF8ajjiXvuN0fNCKApH1u0rYL1TSL3OBUomR+o1eLYw== Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) by OSZP286MB2305.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:187::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 9 Mar 2022 12:50:04 +0000 Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64]) by TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64%5]) with mapi id 15.20.5038.027; Wed, 9 Mar 2022 12:50:04 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <4802fd5bd14e6d73ca8205edab1e38580db7dd0c.camel@telenet.be> Date: Wed, 09 Mar 2022 20:50:06 +0800 In-Reply-To: <4802fd5bd14e6d73ca8205edab1e38580db7dd0c.camel@telenet.be> (Maxime Devos's message of "Mon, 07 Mar 2022 19:11:16 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [L0JBa6jxaKSMHk5OyOnfi8Lw1glQgv+YH2TFvWKut3HVMB6MQ7x8P5fvXslU9xcK] X-ClientProxiedBy: HK2PR02CA0153.apcprd02.prod.outlook.com (2603:1096:201:1f::13) To TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) X-Microsoft-Original-Message-ID: <87mthz2su9.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3a113fb2-3e0b-4755-21fa-08da01cb5526 X-MS-TrafficTypeDiagnostic: OSZP286MB2305:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4nvGUn+y/D/oX5Bj9BYwvBGDxE/JCYaGVy2VUzlNV7fb+gwnZC0mkuYu4RD3+W656GYRyJWWGd0pQT9r/WUUuhz5AgkhTSoNu5J/tklpSCtm4ZyaZDzMiGW2E3LDyXSLpfuHFWvNkprn/Qh8gYorprj/eRB0fcjF9/5IZDhLgCcPWDjg74x9cJKOeqTmbnjN5sDkRg8nZ0uvj4VL/ZXb7pLic7I25BZ24nwN6N/jW8NWVBuZHej3RDTvSvIG3XjHajFVS25siL4vIel9+mllxnM6EZDB+ZAn0hRx7Kh5OClV8XpVB7Pd1slUvvBKXCejAsiaGuEraa66KgGF3F2BZf4ioS+mNwsNdsrP+0+VnQrw8oBgmQM2hfrph14X7a8uiCin3HVHqKNRlvu0DVVpWdb4pgz8ZbIkz+3O9ifZ8lJ3I4sS+zOiLCfvGxVz8xg1i6CHu2ziROb8QRkp2Cw1zYYrgRofODdsOZO40zugA74Jzy36ZR3AmqbzVJae24imrWt5bxDFjQvNpeTb90IXF4x1zLOACVSjQ9XRMLDQDiAYiOpG3Q4z9aXUU+hEo84OdV4EOsHjjGF36qS9/8CvrY4PRbgEsgzKWp/3UZtOaI7VhleRvsdb2tzecNvcaVSv X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OI70GumIFsNcF7lpIqIzm+x0+3+u6BDpDRL1W5I8sSPobT1YBp0JziXsz1PM/tck0zqTRz60YcOe67WZ8n3/5vvo1EItIFvOigXBfRdFJYkc6NhKWavmWj1Z6bZXSrVV6aVNx3Kq04+Q8Ad5n5YRufXdiY/YGAaHJDVwirwxSpG2EbeaNUgmR98HWwM+WzX5odcNiJ250mhwgacHkWm5pSpeQS1ninG90MPtnUhc9F8r2hVCTgMB/B/gCeWaGEhGTftgOsfc08ap9F0h3gyfRKdA2tj9FgVr7/uw7CV1ygJLnasja/h7KZvcmDbKZiAgC8U+ASTJWGRbnYoc8Ut5iF3YP1bQ8jaWdXnEc0wkifNaX23CLOk0QNQhnMilJ6AySbZopi3tVaB1+hORn1DxVqua/2KXHiUjOZhljExWdG8ff14VkmMyBvTu6Xm49AXCozXgYZnYNT3u/Ol7AePFZAETgRoVD8NwW4XqAU6oJj+JnWKV1yvk3xkwtnU84J+s/Y92PdYrgh/IzGwS00L1+Jje8iehorFl1Y/nGU9Q6zaoe79bEjWcwXjbjpY8Pvyy+IgbDrVU3eUqbXavLyh9d5Cle6DANXRUvqQGcM9CIjDocDIdBXT9zQ/YFQJJYRl2rmfazn0Mv9ueU6DtaUToW4PigX/YciO6KSIxQlpqTM+Ul/GO2/wLieAtun7dLTNZldiOMMsoiudWihdTh5p1EWjennNV/7LWH2dNAJt4iOuTTe/ADksKthci87IgmXq85j12l67/8I0g8OqddJHsAmopOGTfgnKxmFESeolYTwsGNCrYyv/nVdA0N9AvrJ4ZXZZ7P3nBEiSOQdHHYSNjuV5M4MGoZD75A7frQ20ArezDgfBhchgMIBhO9D/Mb9iGRcDodL37/yt9rtefMoQLLA/ptcFeXwNjyaN3qwB2daBKFA1ts5I+bOzNaHGWsoeyhCMNvKVD6XBef+5foO+pQE57GlUifR55a7zKajmsauYwPOiCAgL3nYLcg/uiP/AW9AZlm0i12ovz8jAqfl/QvA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a113fb2-3e0b-4755-21fa-08da01cb5526 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2022 12:50:04.7238 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB2305 X-Spam-Score: -0.0 (/) 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.0 (-) (lines begin with '>>' are from my previous mail.) Maxime Devos writes: >> I made 'options' an sexp value since there are so many git options >> (see 'man git-config'). > This can be solved with an escape hatch like openssh-configuration's > 'extra-content' and by adding support for new options on an on-demand > basis. If there are lots of options, that just means there's lot to > do, I think. > [...] > Instead of this ad-hoc alist structure, how about introducing some > structure with records, like done for other Guix services, e.g. > 'openssh-configuration' and 'guix-configuration'? > [...] > To elaborate a little, I think the following options are the most > important to support: > user.name, user.email, commiter.name, committer.email > smtp things (for git send-email, important for contributing to guix) > pgp things (important for being a committer in guix) Yes, add a proper record structure will make documentation and type check more viable. I'll try later.. >> I can also symlink the generated gitconfig into ~/.gitconfig, but >> with 'GIT_CONFIG_SYSTEM' it can be used together with hand maintained >> ~/.gitconfig. > The GIT_CONFIG_SYSTEM is less stateful, I like it. There are multiple > variables like these though: GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM and > GIT_CONFIG. My guess is that GIT_CONFIG_GLOBAL would be appropriate > here. Set GIT_CONFIG_GLOBAL will shadow ~/.gitconfig, while GIT_CONFIG_SYSTEM is applied before ~/.gitconfig, so that user can have some out-of guix managed options in ~/.gitconfig if they really want (maybe password?). > =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op ma 07-03-2022 om 22:51 [+0800]: >> Hello, with: >> --8<---------------cut here---------------start------------->8--- >> (service home-git-service-type >> =C2=A0(home-git-configuration >> =C2=A0 (options '((user (name "foo") >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (email "foo@bar.com")))))) [...] > > How about providing an option for passwords? E.g., > > (home-git-configuration > (user (git-user-info > (name "Foobar") > (e-mail "Foobar ") > (signing-key "some PGP fingerprint))) > (secrets-file "/home/foo/the-password") > (smtp (git-smtp-configuration > #;(password "12345") ; not recommended, use 'secrets-file' ins= tead > ...)) > > (with some appropriate documentation) > > secrets-file (not interned in the store): > =20 > # I don't remember the exact option name > smtp.password =3D Foobaz > > the produced .gitconfig would include a line > > [include] > path =3D /home/foo/the-password Um, I can get it with sexp options: --8<---------------cut here---------------start------------->8--- (options '((include (path "/home/foo/the-password")) (include (path "/home/foo/another-file")))) --8<---------------cut here---------------end--------------->8--- Or if with proper record fields, I'd like to keep the original git variables names in scheme too: --8<---------------cut here---------------start------------->8--- (user.name "Foobar") (user.email "foo@bar.com") (include.path (list "/home/foo/the-password" "/home/foo/another-file")) (sendemail.smtpPass "12345" ) --8<---------------cut here---------------end--------------->8--- But with record field name, I don't know how to encode variables with subsection (eg: url..insteadOf): [url "https://mirror.sjtu.edu.cn/git/guix.git"] insteadof =3D https://git.savannah.gnu.org/git/guix.git The subsection name may not be a valid scheme variable name... I'll update this patch with adding doc and proper record fields for some important options later, thank you! From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. References: In-Reply-To: Resent-From: iyzsong@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 02:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164705178019605 (code B ref 54293); Sat, 12 Mar 2022 02:23:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 02:23:00 +0000 Received: from localhost ([127.0.0.1]:38885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSrP9-000561-SV for submit@debbugs.gnu.org; Fri, 11 Mar 2022 21:23:00 -0500 Received: from mail-tycjpn01olkn2099.outbound.protection.outlook.com ([40.92.99.99]:11956 helo=JPN01-TYC-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSrP4-00055i-M4 for 54293@debbugs.gnu.org; Fri, 11 Mar 2022 21:22:50 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JBVLO+RqJa2rqLgMiX6gx6hkmZf6CGymTRVGEWae/G2KfYlSITpkh+WFaTN57S0iX+hoFnqX+botWL69Qhpm/zIx4qyaTOeYZPsum3tjFHLgAvUwo3LY+dbpctbB+BLBmFO+EorXUvP773SaCAp0iwWZiepW05PvEN7UMZ+j6m4eTh1i8hwUI2pFdCvWSAfy/6ya/CBieMWsoacwrh4dyH9W9zGRuzU/DS1pZo74ydabPvlZhrzMdGrqggAh8QyC20fyxKiyVK0ZFaMOnTqFLlEDClYC2kkKYKkfzX2ZYQFkmOHKeGPCiiJhCCH4/Jq6QbUoAWrR5w9F/gRzV1Kubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xiEctsXhuGGfYMpqOxEAAunbwksp9XNXnMLXXjrETSg=; b=Ako0UtmIl/gFksGBI+kTxYbPxJyS1kY8N8Xczwx8SVocJyAtgpcrlVfHs67nbNxyPvoBnvhUDxJlFCLYwQTKXD8bH/w3bWlK7vhg9uLJ+DNcPTSu9suwSQr7uhgl9rd9klxW9bTPf7FZdQiTnxpKGzIuaxMKygM1ybPL6Sg2qVy8r4+/waiJ4Zx1ZgwWbPrEm3lzwCQQ4mUPlUs5UXQ3ZanTr+ep3MNr4S+fZWItHHISqGUK68TqW+OAn7F9X/eZL9nIhES2EnpvuOW3T+oix6DmaY5vCkL5Q44WrZKhSUZCeUYGAby4qvwmwoLP31PGW27RFP29B+JsZKll8ssleQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xiEctsXhuGGfYMpqOxEAAunbwksp9XNXnMLXXjrETSg=; b=hticpGHMCx+3lgirGJcKFkTmN7lxW8nrtbrbKVwVfVaEFPYtvTOvsrH5SArwPt9Ivqci/9Qbs59Rhgl35sKhB7CZpMBXQpjoX/1kcJkPIvExgkY26OPnkcV4MM86g5R619qR0m7vBouuxVQP7XKAwIWLgM4odvbxzVjGhvXIG2w/++CL5hL9CMprUGyIslkr5n9xz++uEmqfjIDIh/oy07EcRrP/TMFEiEVnFrUTOIEKc4c+YZhIMoymj41v9Ag0xXPt49cPceB2KVV+62Fb2HeQCzx4NTkquEIQ1dxLxElQ0c5FDgnEFwGf4fZdP0L+piHKuCcWZatgjvh1g/M8QA== Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) by OSYP286MB0456.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:89::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Sat, 12 Mar 2022 02:22:39 +0000 Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::ec4a:85af:7fb8:de9b]) by TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::ec4a:85af:7fb8:de9b%5]) with mapi id 15.20.5061.025; Sat, 12 Mar 2022 02:22:38 +0000 From: iyzsong@outlook.com Date: Sat, 12 Mar 2022 10:22:32 +0800 Message-ID: X-Mailer: git-send-email 2.34.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [xMKCUqEK+wzkB9ndWRhMVyyutN5YdeNqZmSqadHUK4pqQA/jUja+5CjhWBiVW80i] X-ClientProxiedBy: HKAPR04CA0005.apcprd04.prod.outlook.com (2603:1096:203:d0::15) To TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) X-Microsoft-Original-Message-ID: <20220312022232.16934-1-iyzsong@member.fsf.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5153cb6-dbf5-49b9-f8c4-08da03cf2db5 X-MS-TrafficTypeDiagnostic: OSYP286MB0456:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kWG/1NyIWGuF9YuA5sOpjseHv0ygTVwC9AA4jp4tPib5dWpX8jxi0QHceQGgGCS28XNQoiLdXKnd30MP9UCj37Om3FIVALuD8a6/tyc9X8UZQXx9IIAY7JualeY3ToOufjlHOlgeQkxJ53TH/R+rAix72dsHulKXcKrr6e5tIryaswAT22xjQ1MQwcNBdmeJoMqucWd1UkIrq8S/nUxNhyZYJoXJqHZoh55+Ok+Oh5y5sg3L6vDtM+8iCZfNbLeGgSgOzcasPXAPwnLq9YdaVtXeRdmlF3tKv2OiyPXmEji64DV9uf4/hDFxQf1DFBtQ0WfIKD06lsR8hBpzrNKeq9Ufneri2O3guxFLXU1NsDYu1FLe3Vqd2PB+GeCceGtvBQ3cAh+hPbJnJp+KuqKnfWUeM8xTpdjZe21yYjtpJ5uOQ6bMlgRPEUrOzV0RvoW2EUGFU/Cf00OUe7R+9dOp105efdEniNWu7Tbvnj4+R20qf+THjj/x7XFM/8bbZuxSKj3+EWirG1XVw0TP3RMa1y7HHQPIpcv7b73qjDwIVxwzRMtwWEE+FregJSdEKu4nmbnynmVj+kVTCJBNYBqD33To5pIikXfRgohukYYaOxMQMKxS2G/GvsKMk2zuTiFY X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X6u/iT/wCA0/hCDd3DcL3pUaoqAY3u+iEwUY6ukd54IG7yjpwymA7dWZ1UotS6xOSsSC2psa0zRwrdFSZCeBcscqxXdnUWvDe5tVaNFZOSLhsV0NfggKRjjLt5P0+SqG2/8gC1Xj43mVoT++K2E4XjBOZ/akEWvIQlYCufGrIaAjjOEX7jBbtAqodhcbXAgPVAohPRsQk+clhT/QbijvyHWc3yZbSqBtwGG43O1Q+QnYnK8FSYKJO72Z5vT26ta9h8Uu1YctRjGx9fI7S2xsL7T3N4j+hXnUNIWx1N587uMDwPLrhmj28g/SKGW7pK5QAUcBTw6PZ01OwVdw/xyUFJ+CP4UyY14BeK9q5UhEoOfRQmZ5KPcrSFGTq2VOy2DhI6g9p8pHHjsZBbscJvdECRNxql+amEkf4NFTf+4MTV0xc2kzjdC8AIPH0lvLFMFmwtsdmMNFTGuOcBtWpWcAgNuxYTD4ahGE8qnxwAZ6p+BLNinbONJGROILA7uWZfuazP72fBm1yXGJtW0duWjXwqPoIcwE7Gwwh98PODPJiaOG5Yn3e4ctpUqDqFRzHSEvXIZL9PyP517Vbxl9SGsEqE5DxhDyo7YvFUjBtljS5VYARaLhCwSOg1bjQwbBazIILyoATXMjZw84ey3XJbV/4GiDY2udy/OxDuhYJdTBpiimiE4NBjb87ySxMeTynp4mckq7rAWvKTb06u/ttqZxaJpGPWjGmI5PL/Rt9ScObdI4OOvwQB9GrmJBV1SfhtxrtYSPb9FndADRsyQsZGEBWioJfZ4xrg4DyKVBhH1fv+jb+gm+ldBH2Fii3NuV1K3BppRfNe9Nq7C/BA9Q/SiqsCbdUlGGWLp/BEbj0s8MN0hxI4K0cX5spnKQgnawMwZJdKawdZjIBRLN7ElIRL2y+ZRDoYQqEcqbCBq79OocjQ8jY7DkpNRsSQ5P8m/8zoaft0UXNkYAd2mSqKP4VI4UCJhIA8Bk9Q6HrEDNHl1WYYhjG3s7si68cVUUDTle+m+XBpyE+T7xgWm7NLq2XS9bghWteLhmRiZAUjeHt7+4kXVeFDrhYkGEYJh73hDDOE3b2zV5Ui0rkgbQffrH+lAAe2e9hnXEohz0d+N07wQ+kIYuoPh9Q2AjgtVysY7IC2zCNZvefAZbYzfVhdD+XAvm/xa8wfQpTvSWlxQlLZYAtWa9XFJvRCvJwKWy2NIW6y9OKVBog2keaSXL2BIaPvyr4w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5153cb6-dbf5-49b9-f8c4-08da03cf2db5 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2022 02:22:38.9484 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSYP286MB0456 X-Spam-Score: -0.0 (/) 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.0 (-) * gnu/home/services/git.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/home/services/git.scm | 214 ++++++++++++++++++++++++++++++++++++++ gnu/local.mk | 1 + 2 files changed, 215 insertions(+) create mode 100644 gnu/home/services/git.scm diff --git a/gnu/home/services/git.scm b/gnu/home/services/git.scm new file mode 100644 index 0000000000..f39c931c38 --- /dev/null +++ b/gnu/home/services/git.scm @@ -0,0 +1,214 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 宋文武 +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu home services git) + #:use-module (gnu home services) + #:use-module (gnu services configuration) + #:use-module (gnu packages version-control) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (srfi srfi-1) + #:use-module (ice-9 match) + #:export (home-git-service-type + home-git-configuration)) + +(define (git-option-value? value) + (or (unspecified? value) + (string? value) + (integer? value) + (boolean? value))) + +(define (serialize-git-option-value value) + (cond + ((string? value) (with-output-to-string (lambda () (write value)))) + ((integer? value) (number->string value)) + ((boolean? value) (if value "true" "false")))) + +(define (git-options? options) + "Return #t if OPTIONS is a well-formed sexp for git options." + (define git-variable? + (match-lambda + ((key value) (and (symbol? key) (git-option-value? value))) + (_ #f))) + (every + (match-lambda + (((section subsection) variables ..1) + (and (symbol? section) + (string? subsection) + (every git-variable? variables))) + ((section variables ..1) + (and (symbol? section) + (every git-variable? variables))) + (_ #f)) + options)) + +(define (serialize-git-options options) + "Return the @command{git-config} text form for OPTIONS." + (define serialize-section + (match-lambda + ((section variables ..1) + (with-output-to-string + (lambda () + (match section + ((section subsection) + (simple-format #t "[~a ~s]~%" section subsection)) + (_ + (simple-format #t "[~a]~%" section))) + (for-each + (match-lambda + ((key value) + (simple-format #t "\t~a = ~a~%" + key (serialize-git-option-value value)))) + variables)))))) + (string-concatenate (map serialize-section options))) + +(define-configuration/no-serialization home-git-configuration + (package + (package git) + "The Git package to use.") + (enable-send-email? + (boolean #t) + "Whether to install git email tools from the package's @code{send-email} +output.") + (user.name + (git-option-value *unspecified*) + "The human-readable name used in the author and committer identity when +creating commit or tag objects, or when writing reflogs. If you need the +author or committer to be different, the @code{author.name} or +@code{committer.name} can be set.") + (user.email + (git-option-value *unspecified*) + "The email address used in the author and committer identity when creating +commit or tag objects, or when writing reflogs. If you need the author or +committer to be different, the @code{author.email} or @code{committer.email} +can be set.") + (user.signingKey + (git-option-value *unspecified*) + "If @command{git-tag} or @command{git-commit} is not selecting the key you +want it to automatically when creating a signed tag or commit, you can +override the default selection with this variable. This option is passed +unchanged to gpg’s @code{--local-user} parameter, so you may specify a key +using any method that gpg supports.") + (author.name + (git-option-value *unspecified*) + "The human-readable name used in the author identity when creating commit +or tag objects, or when writing reflogs.") + (author.email + (git-option-value *unspecified*) + "The email address used in the author identity when creating commit or tag +objects, or when writing reflogs.") + (committer.name + (git-option-value *unspecified*) + "The human-readable name used in the committer identity when creating +commit or tag objects, or when writing reflogs.") + (committer.email + (git-option-value *unspecified*) + "The email address used in the author identity when creating commit or tag +objects, or when writing reflogs.") + (commit.gpgSign + (git-option-value *unspecified*) + "A boolean to specify whether all commits should be GPG signed.") + (sendemail.smtpServer + (git-option-value *unspecified*) + "If set, specifies the outgoing SMTP server to +use (e.g. @code{smtp.example.com} or a raw IP address). If unspecified, and if +@var{sendemail.sendmailcmd} is also unspecified, the default is to search for +@command{sendmail} in $PATH if such a program is available, falling back to +@code{localhost} otherwise.") + (sendemail.smtpServerPort + (git-option-value *unspecified*) + "Specifies a port different from the default port (SMTP servers typically +listen to smtp port 25, but may also listen to submission port 587, or the +common SSL smtp port 465); symbolic port names (e.g. @code{submission} instead +of 587) are also accepted.") + (sendemail.smtpUser + (git-option-value *unspecified*) + "Username for SMTP-AUTH. If a username is not specified, then +authentication is not attempted.") + (sendemail.smtpPass + (git-option-value *unspecified*) + "Password for SMTP-AUTH. If not specified, then a password is obtained +using @command{git-credential}.") + (sendemail.smtpEncryption + (git-option-value *unspecified*) + "Specify the encryption to use, either @code{ssl} or @code{tls}. Any other +value reverts to plain SMTP.") + (sendemail.sendmailcmd + (git-option-value *unspecified*) + "Specify a command to run to send the email. The command should be +sendmail-like; specifically, it must support the @code{-i} option. The +command will be executed in the shell if necessary.") + (extra-options + (git-options '()) + "Extra configuration options for Git.")) + +(define (home-git-configuration-final-options config) + (let* ((fields + (filter + (lambda (field) + (eq? (configuration-field-type field) 'git-option-value)) + home-git-configuration-fields)) + (options + (filter + (match-lambda + ((section (key value)) (not (unspecified? value)))) + (map (lambda (field) + (let* ((name (configuration-field-name field)) + (section+key (map string->symbol + (string-split (symbol->string name) #\.))) + (value ((configuration-field-getter field) config))) + `(,(car section+key) (,(cadr section+key) ,value)))) + fields))) + (extra-options (home-git-configuration-extra-options config)) + (merge-options (lambda (options) ;merge options by section + (fold + (lambda (e prev) + (match e + ((section variables ..1) + (begin + (let ((v (assv-ref prev section))) + (assv-set! prev section + (if v (append v variables) + variables))))))) + '() options)))) + (merge-options (append options extra-options)))) + +(define (home-git-environment-variables config) + (let ((gitconfig (serialize-git-options + (home-git-configuration-final-options config)))) + `(("GIT_CONFIG_SYSTEM" . ,(plain-file "gitconfig" gitconfig))))) + +(define (home-git-profile config) + (let ((package (home-git-configuration-package config))) + (if (home-git-configuration-enable-send-email? config) + `(,package (,package "send-email")) + `(,package)))) + +(define home-git-service-type + (service-type (name 'home-git) + (extensions + (list (service-extension + home-environment-variables-service-type + home-git-environment-variables) + (service-extension + home-profile-service-type + home-git-profile))) + (default-value (home-git-configuration)) + (description + "Install and configure the Git distributed revision control +system."))) diff --git a/gnu/local.mk b/gnu/local.mk index 9bfeede60f..a5ea94b3a1 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -80,6 +80,7 @@ GNU_SYSTEM_MODULES = \ %D%/home.scm \ %D%/home/services.scm \ %D%/home/services/desktop.scm \ + %D%/home/services/git.scm \ %D%/home/services/symlink-manager.scm \ %D%/home/services/fontutils.scm \ %D%/home/services/shells.scm \ -- 2.34.0 From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470786917580 (code B ref 54293); Sat, 12 Mar 2022 09:52:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 09:51:31 +0000 Received: from localhost ([127.0.0.1]:39095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyPL-0001yB-6G for submit@debbugs.gnu.org; Sat, 12 Mar 2022 04:51:31 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:50582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyPJ-0001y3-CK for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 04:51:29 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by albert.telenet-ops.be with bizsmtp id 5MrS2700G4UoT8k06MrTS5; Sat, 12 Mar 2022 10:51:28 +0100 Message-ID: <82375f0f494e3b729bf0ed0fa3a55bede0a18ae5.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 10:51:26 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-a0SUDPwwaDlVENp6Z4/s" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647078688; bh=schI2s6fMd4ls5s+oiGc853H8epQaoQKzZPBQP7BSgU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=eEDnqTedGqjh9tosSg7ItACiAe0H2kq0H05Hv9DYqN6hfDaiBNGkqWMpmNkr/TOpD 3b/Ex0OBCL7oEMcdz/4e1zQ+ZXDYTh4qZOHu3gpaDb6jSG/F/1Pa8xcuq18qKdWsFj ylnOGxfmrrSvkbjBMbCqxlfbsa1cpBgFmfY78i9ikG4dtNpTXdbz28c2+ecGr33Lll xsfplRa2rkVTpcqGcDRwUX9uesLe02lYPmS0TB9scIs5Qqb7lGt+pXAnWiELH1gF32 eHBrXB4c6LmdZbJsPI0OYjyK5cZneBuTXju78ii2/MKgY5yGIDDz+MrWrMU+xC+rsI 0IB+otogRL+0Q== X-Spam-Score: 0.3 (/) 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 (-) --=-a0SUDPwwaDlVENp6Z4/s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +(define (serialize-git-option-value value) > +=C2=A0 (cond > +=C2=A0=C2=A0 ((string? value) (with-output-to-string (lambda () (write v= alue)))) Does git follow the same escaping rules as Guile? > +=C2=A0=C2=A0 ((integer? value) (number->string value)) > +=C2=A0=C2=A0 ((boolean? value) (if value "true" "false")))) This (and more generally, the home-git-service-type) needs to be documented in the manual. Greetings, Maxime. --=-a0SUDPwwaDlVENp6Z4/s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixtHhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q7MAQC3sqVp5mEPqQcxNFPKEMTK5ILF uLWTz1sg34theVrQVAD/SR2ivaFli73G71CMOYjj8Mwzf7sVVE7DHAmT/69S5w4= =dJih -----END PGP SIGNATURE----- --=-a0SUDPwwaDlVENp6Z4/s-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470788597828 (code B ref 54293); Sat, 12 Mar 2022 09:55:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 09:54:19 +0000 Received: from localhost ([127.0.0.1]:39100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyS3-00022C-Jw for submit@debbugs.gnu.org; Sat, 12 Mar 2022 04:54:19 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:55320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyS1-000222-Tw for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 04:54:18 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by michel.telenet-ops.be with bizsmtp id 5MuG270034UoT8k06MuG9J; Sat, 12 Mar 2022 10:54:16 +0100 Message-ID: From: Maxime Devos Date: Sat, 12 Mar 2022 10:54:15 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-XsTttykZMBHLmbHblEVz" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647078856; bh=MlqJC8KKzkFsq5i6Fr4SquFwEmUqgcV15vlAWroW4Nk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=CrtX6bipB3DDbiDObACosMi7uHFyMBMLHIIvfv1KOyJXTwGZS8C+TnqrihcsL2Hxu IXrkkcFkWlwx+uMOd4nXrdpIr4PbdJarBHJ3pgZIIEJWzffbA/kYbEURfelAIz5grJ ya9l0l5JfWaSoyrp0JVMigkuwJfK1Wo+qJmPkh4nekCdgewzKKiMceToKq5N6NVfTT kpmYKyCGS3Ygbx5HqJE8p/ghFj4ICFlZCO6LnayN5Gq0ewpQn6F1NrAhGIIoT1otp2 CZ+iL/qivlK0Qelu3h3C8YEXCZK/P6uUeEwvx5HP71my2UBBa7t7OTSmFm89jneOME I5UQUza1Y1UJg== X-Spam-Score: 0.3 (/) 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 (-) --=-XsTttykZMBHLmbHblEVz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > + (user.name > +=C2=A0=C2=A0 (git-option-value *unspecified*)) I think *unspecified* is considered an implementation detail. Proposal: let it be #false by default, and don't serialize the option whenever it is #false. Also, I don't think that user names can be #false, #true or integers.=20 Perhaps a 'git-string-value' would be useful? Greetings, Maxime. --=-XsTttykZMBHLmbHblEVz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixtxxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lGHAP4hdXaCnEubbeJPwdBdr7IeUI+X 80NFepC5/9cnn2eARAD/b9zaz/NB84SAaNjmsJRM37QoewPQPpUf8yZaCwk6xAE= =tvCJ -----END PGP SIGNATURE----- --=-XsTttykZMBHLmbHblEVz-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 09:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470791088197 (code B ref 54293); Sat, 12 Mar 2022 09:59:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 09:58:28 +0000 Received: from localhost ([127.0.0.1]:39105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyVz-000283-40 for submit@debbugs.gnu.org; Sat, 12 Mar 2022 04:58:28 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:60294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyVv-00027t-7q for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 04:58:22 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by michel.telenet-ops.be with bizsmtp id 5MyH2700J4UoT8k06MyHpf; Sat, 12 Mar 2022 10:58:18 +0100 Message-ID: <69025df84189c9ba933d32dd39d6f092c76b3fc4.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 10:58:17 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Jpxc6Kz2QLNIVFVj2ivB" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647079098; bh=nYFaWHKJPsqRCF84Rk4Dn3n+ASvRtMsye+Er0QMCf0c=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=bpN0f9drv6/X1WLvFVGtevmt5kAY5iNKLj1mic5S4dO9L/bOQ/eJSJeau7xuVtDif KT6fW6neVeU/lmJFESUsMFp3my4bnrXQTltFAhs9MlN09MOUiWqkJsrp4VWTA89EsF GnlBXYnMxqu8D9/oUFh6pzNnAyVYxVkPk4+Xcg5O2O9DZW9HA9iwx9ZLjLyNWG6xoA SwmkuorViLt92KC+QC5bYTKwRBq1cc8MkyIRjjZAsejWdl/gtpcH6IMaGCXj+KfX0G 1MEP5VlREKbpBQfEHj8FtfESolftxIc16ddY1BaljiXnpLuTiwdfZ1H2PnFvZeULjj OEovM8rUpC2sQ== X-Spam-Score: 0.3 (/) 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 (-) --=-Jpxc6Kz2QLNIVFVj2ivB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0 (user.email [...]) > +=C2=A0 (user.signingKey [...]) > +=C2=A0 (author.name [...]) > +=C2=A0 (author.email [...]) > +=C2=A0 (committer.name [...]) > +=C2=A0 (committer.email [...]) Conventionally (Guile) Scheme symbols are lowercase and don't use dots. I suppose you could do 'user-signing-key'. However, there seems to be quite some duplication between 'user', 'author' and 'committer'. Perhaps you could abstract things a little by e.g. doing something like the git-user-info record I proposed? (home-git-configuration (user (git-user-info (name ...) (e-mail ...) (signing-key ...)) (author user) (committer user) [other options]) =20 Greetings, Maxime. --=-Jpxc6Kz2QLNIVFVj2ivB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iIwEABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixuuRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uYsAQD9sOmivz8M4/WeuGd5vhg5ff8K O9JzkI0Pda2eRcNL3QD3bGfMkmNm4J/mjuDKFoYKMgB4udI1dIHTnzNF0G2WDg== =lJ6p -----END PGP SIGNATURE----- --=-Jpxc6Kz2QLNIVFVj2ivB-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470793248657 (code B ref 54293); Sat, 12 Mar 2022 10:03:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:02:04 +0000 Received: from localhost ([127.0.0.1]:39110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyZY-0002FZ-Dk for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:02:04 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:39406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyZW-0002FR-QI for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:02:03 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by laurent.telenet-ops.be with bizsmtp id 5N20270054UoT8k01N20H0; Sat, 12 Mar 2022 11:02:01 +0100 Message-ID: <603cf5d762cebe92c15a9b50a8df121d97bf2e68.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:02:00 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-yDIwbxughuLh/kaogQus" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647079321; bh=7Mqyfn60QzVRDVOqLIwrmJovOdG6l88kqf6+1HuMwCM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ISnpjlfKfQFZAyiLyOrgVkXLbIxhV/PCyNrBFyPrFiecCDGwqWSO6QxCVK+KfSB7H b0oX05puL8F4D/LmMu2XeQY10EvFOnruBjV1t1bavvD721V9wa+eEOQOPMg1kXLuXP /zX6EKcbYq8kwOqrtXWX+CswrI7daKjX07eYq3BUokR4dnyL/vzskosJ8qQ7buiv/u ta6r/N/4GgBRFDdj91PgudvcrNGxdA0SN2BGtdQBTTxUmpm/D7MbLcYZUOlokxE/IE vlQ9ibxR11QF2BDN6J3/8RcI2M2dg5oTa0yJ0KDJ2SoIbEkPv0yQqnHWtxOXCBjOnu xw2eFuRuRqmWQ== X-Spam-Score: 0.3 (/) 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 (-) --=-yDIwbxughuLh/kaogQus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +(define (home-git-profile config) > +=C2=A0 (let ((package (home-git-configuration-package config))) > +=C2=A0=C2=A0=C2=A0 (if (home-git-configuration-enable-send-email? config= ) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 `(,package (,package "send-em= ail")) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 `(,package)))) Why is git added to the profile? E.g., what if, say, I want to use "guix home" only for setting up environment variables, dot files, etc, but not for installing software, and I want to use "guix install" for installing software? Alternatively, what if most of the time I don't use Guix, so I have no need for "git" in the environment, and when I do need git, I'll just do "guix shell git" to temporarily add it? Greetings, Maxime. --=-yDIwbxughuLh/kaogQus Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixvmBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ld/AQCHiDerPVcXe04uFplQXdIeQIFD R6qUndmH8akDBNCztAEAjO0+D4ZvnCRnYdOhRgW8Y5iMibPo3WwFSYXueJXPzgQ= =HdmW -----END PGP SIGNATURE----- --=-yDIwbxughuLh/kaogQus-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470794138808 (code B ref 54293); Sat, 12 Mar 2022 10:04:02 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:03:33 +0000 Received: from localhost ([127.0.0.1]:39115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyay-0002I0-PF for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:03:32 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:41424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyax-0002Hq-0R for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:03:31 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by laurent.telenet-ops.be with bizsmtp id 5N3V270064UoT8k01N3VVT; Sat, 12 Mar 2022 11:03:30 +0100 Message-ID: <6be8d3ea9366c82981a3cd39d20e5d8dcf73eb17.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:03:29 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-X+nV6rex4ZkZCh8J9TOS" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647079410; bh=J+cx+yNKKfNvJ0PvoHkqy24cDBfdnxXdKv3Z8ogmqT8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=MlFbbCj3lUcUlhaALJ2P+Xd1TMmPySUt9dzXXXJuwwwkIP3uHaw45xD5SU4t4bt8e hchsBwUl295UtzALqR+y7VuYUH2N2Y83RTdLwZ9XSxTmurJ8k3fl5SXGYWt6H6DeXx C8DtdBPMMHdxLtrYN88IbErYU2hFS76T3ZFW81zApdA2DVN9baS2x8LnRqMsP4wFB+ gnIEuMsU1QMYFVrpjJxBpzWaBTUg5/m29Gs84OnsQdKdSTE+otfzInFZQCScUlBoRW Lou6GSpBLInNpc+ef0EPtR2833dGTkzP+QhUDRl17t2cnR3TwlyeKzieYyrjU2N11u skKltWQs6mdAQ== X-Spam-Score: 0.3 (/) 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 (-) --=-X+nV6rex4ZkZCh8J9TOS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "Whether to install git email tools from the package's @cod= e{send-email} > +output.") Perhaps add a little text about benefits/downsides? E.g., "Enabling this allows sending patch e-mails from git with @code{git send-email}, at the cost of an increase in closure size." Greetings, Maxime. --=-X+nV6rex4ZkZCh8J9TOS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixv8RccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mTeAP9dINIOwWlwYlrvzv93JaRrvqZF C+b7/Q9a0yXDhrQqSQD9F3aLXboMWo00ULPUN3+4ApRNJV9A91cPwBsAeCV6QwI= =+Xnh -----END PGP SIGNATURE----- --=-X+nV6rex4ZkZCh8J9TOS-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470798909528 (code B ref 54293); Sat, 12 Mar 2022 10:12:02 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:11:30 +0000 Received: from localhost ([127.0.0.1]:39120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyig-0002Tc-Hs for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:11:30 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:46512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyie-0002TS-BQ for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:11:28 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by albert.telenet-ops.be with bizsmtp id 5NBS270054UoT8k06NBSND; Sat, 12 Mar 2022 11:11:27 +0100 Message-ID: <51a5aff9fb6644a1c8cf8d22ef55a5f84a613385.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:11:25 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-qnIrp6yQ2vdBnLnaICai" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647079887; bh=JM4VVeVHNtUGxNTy6JwM9YqRAC8Uqo8taK2MaIumSVA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=MU7Fqnjc1LIsNfIq+0xIQwhG7eHtXu/rrR07iORYBd2HXs0n4mJmxz96PrlZiR7y1 gFzIRXZlkh01g541tV+djqKFyjlZECLUnxWiJy7j0Lcc6zho/EKSqMhozXhvOvByj9 UpzGBRnmVXrK8ONLUz6UqglfJpym1n5p5xoKPNkv6ttr3k6j1YAPCY2da1bp2TYtHa wiy6Lt7XvuLDV/xJuh40bds6SPhxXzTmmFSBxJ2zLd2Gn+9UFzyOhwg98a8BxcT141 qqPwKnprvERte8KLxNhAnMI/UJyW84vnv8xko8PkVwdUefuDbw2VvoJciQvQYXYf6R J5eDkoQJ6ZSxg== X-Spam-Score: 0.3 (/) 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 (-) --=-qnIrp6yQ2vdBnLnaICai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "The human-readable name used in the author and committer i= dentity when > +creating commit or tag objects, or when writing reflogs.=C2=A0 If you ne= ed the > +author or committer to be different, the @code{author.name} or > +@code{committer.name} can be set.") It does not need to he human-readable AFAIK, space aliens could write a name in some space alphabet not understood by humans here (as long as it's in Unicode). This sentence could be simplified a lot: "The name of the committer and author to record in commits and tags. By default, git assumes the committer and author name to be the same. To override this, the field @code{author.name} or @code{committer.name} can be set." This technically ignores reflogs, but I expect most people using git to not have to know what reflogs are. Greetings, Maxime. --=-qnIrp6yQ2vdBnLnaICai Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixxzRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jKBAPsET2U9Ucto54NcsHYxn5kW9U2H zjuD9NdgVhQqU2jnCgD9FgOfKKxXC5ORMfiiLUtvcgVEy5fOYUa3xzlCWqtNnQs= =+NzL -----END PGP SIGNATURE----- --=-qnIrp6yQ2vdBnLnaICai-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16470799689650 (code B ref 54293); Sat, 12 Mar 2022 10:13:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:12:48 +0000 Received: from localhost ([127.0.0.1]:39125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyjv-0002Va-Sa for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:12:48 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:50666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyjt-0002VQ-R1 for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:12:46 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by michel.telenet-ops.be with bizsmtp id 5NCk270014UoT8k06NCkqy; Sat, 12 Mar 2022 11:12:44 +0100 Message-ID: <270a0a2231b7e5d81d041455bf5af0b4bca7ffcd.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:12:43 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ZT7kMKvSMj3uvcUcH4HG" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647079964; bh=l78Gq1qOLcZOORrgbXSgr0XIsAVdddwZFkHWgXGm/mE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fgU0BOAJt4QgR7ysr3HkWWdqVSHhBiIRRntlFggohfMYO26IWnoLy6YMe7e89EB1V ummWR2SvwHfKpTByvui0EZJCGn/nEb1R1aUdLqPwyT7uzoUK/wK3fiQNhcQOSNCSSd 1NiXcRq+Q8ynCiie6eOwMSRX7t23FdHv/2R6tE8QaOzUAxwwFvy8xm8pzpL8FIrnci lUABdEm1MxiQl0PfcB8YYGIoi2jXMZdx4KVkVTCwlGip/L712sNmZDw2yI79F0DtfW HBCDFyU27QKJbd4k7OkS3x81bnmskjtvsC5cuMMOk5U10n2SG20IzJrUbu1u9/PkWr u0e6elkPXTSaw== X-Spam-Score: 0.3 (/) 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 (-) --=-ZT7kMKvSMj3uvcUcH4HG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "If @command{git-tag} or @command{git-commit} I don't have a 'git-tag' or 'git-commit', but I do have 'git tag' and 'git commit'. What are the hyphen-minuses doing here? Greetings, Maxime. --=-ZT7kMKvSMj3uvcUcH4HG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYixyGxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7g54AP0d9D0kOMyU3iwwbSXYf7zqIx9G csEGd/U9l/5anc4oNQD9HZR4rlOtiaUjXEksr2XRgCe1PP8+Q8TFPVGarMrC9gU= =tUVP -----END PGP SIGNATURE----- --=-ZT7kMKvSMj3uvcUcH4HG-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164708051410510 (code B ref 54293); Sat, 12 Mar 2022 10:22:02 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:21:54 +0000 Received: from localhost ([127.0.0.1]:39142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSysj-0002jS-RM for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:21:54 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:59990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSysh-0002jJ-KI for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:21:52 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by albert.telenet-ops.be with bizsmtp id 5NMp2700W4UoT8k06NMqmF; Sat, 12 Mar 2022 11:21:50 +0100 Message-ID: From: Maxime Devos Date: Sat, 12 Mar 2022 11:21:49 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-//Xxhnb6VofxfvTUeRDL" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647080510; bh=dl+DUemTBUyG13rMi6KOWjiXGeRsakFOdQGUXlQ31Vk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=IMMenWhKjI8wBwtUeGBXssgzWzX/mOb4Ov5CnIkqF+k+C855b/4Qt5bTOy7dMuTVs 9CzkHrf3cEc0hJgujiRoPjaCjKdidF3lhx/8MiH6BhQh0MzDS/pSfOXfVbSqR7FrSp vstwBVFK2HQ3sbG0WelXvWjOEgQIq0+OHc9o5W0CiIhAjZdygBnnp/SZ3n9Q+MM0Dd yXtjV21GXQSKIhufTMvOD9CI7CpwUcWNEUHrhfgb9qsuc8VbbjERk831/o0aEK4gdF Zt4gwJu9xtkwTEK3Ikik9seK73FQCCtQM6YbGVwne4YaEa7W/BSaHrjb2rixyMMZLy 1uafQGFu4Ceqg== X-Spam-Score: 0.3 (/) 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 (-) --=-//Xxhnb6VofxfvTUeRDL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "If @command{git-tag} or @command{git-commit} is not select= ing the key you > +want it to automatically when creating a signed tag or commit, you can > +override the default selection with this variable.=C2=A0 This option is = passed > +unchanged to gpg=E2=80=99s @code{--local-user} parameter, so you may spe= cify a key > +using any method that gpg supports.") I would do this in the third person (I think the manual recommends this somewhere but I wouldn't know where), and avoid mentioning the implementation details (=E2=80=98this option is passed to=E2=80=99) in favo= ur of the meaning (basically, =E2=80=98declarative=E2=80=99 documentation instead of = =E2=80=98procedural=E2=80=99 documentation). Proposal: "The PGP key, if any, to sign commmits and tags with. This can be in any format that gpg's @code{--local-user} parameter support, e.g. a PGP fingerprint or an e-mail (*) address. If set to @code{#false}, this defaults to a private key corresponding to the name and e-mail of the committer." (*) I don't know if Guix uses "email" or "e-mail". Greetings, Maxime. --=-//Xxhnb6VofxfvTUeRDL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYix0PRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uvJAP0Ujh+Ka/TBJcr7LVqdND10IqH6 UqpzGjb0i3Rh8ls9EQEA/9GoaGrnY5RPejvQ/cJ745se9WVXIiMuj2BpYeYcbwM= =Ggj7 -----END PGP SIGNATURE----- --=-//Xxhnb6VofxfvTUeRDL-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164708069510808 (code B ref 54293); Sat, 12 Mar 2022 10:25:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:24:55 +0000 Received: from localhost ([127.0.0.1]:39151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyvf-0002oG-IC for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:24:55 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:36046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyve-0002o8-Je for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:24:54 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by albert.telenet-ops.be with bizsmtp id 5NQt270034UoT8k06NQt99; Sat, 12 Mar 2022 11:24:53 +0100 Message-ID: From: Maxime Devos Date: Sat, 12 Mar 2022 11:24:52 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FC3lODejIUmSFSc5iN/5" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647080693; bh=jHcHrHiLBk4cMpue0XMzp8DIvxbLSsJ3t5lbdAGAkWA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TwrQwwiiCZxl6/S9zoQDzT1RL38aK8MvpmtQlZMPcRjctk/rmlszDtWaNFZc0MJZl kQqEh++aDu2zmewzz+gfsb9IRiQdBiWyzpySEecVb618U8HVQTdBcR3Yw1FBhhU8xb Sw4VlBlPTfIDm6qAjWYiHAY74HYk7ShAl0GPAXv6eiU0z0zQjy6MumMrLIBX1I6cLy 32V1LVrblr5N8A7IIvP04pG8oC5ZDwnzS39OdiB6OGm/v49aRdYPAOGcoxeKb9x557 2Mw7EeVO27osUETkZL9m0pD3o7Jrlt44l95l/nl1Jm/0/7A9IsSMFzHgreD20t8pAh MTaHwgzlPx+qg== X-Spam-Score: 0.3 (/) 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 (-) --=-FC3lODejIUmSFSc5iN/5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 aXl6c29uZ0BvdXRsb29rLmNvbSBzY2hyZWVmIG9wIHphIDEyLTAzLTIwMjIgb20gMTA6MjIgWysw ODAwXToKPiArwqDCoMKgwqDCoMKgwqDCoCAobWVyZ2Utb3B0aW9ucyAobGFtYmRhIChvcHRpb25z KSA7bWVyZ2Ugb3B0aW9ucyBieSBzZWN0aW9uCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChmb2xkCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKGxhbWJkYSAoZSBwcmV2KQo+ICvCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAobWF0Y2gg ZQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqAgKChzZWN0aW9uIHZhcmlhYmxlcyAuLjEpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChiZWdpbgo+ICvCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqAgKGxldCAoKHYgKGFzc3YtcmVmIHByZXYgc2VjdGlvbikpKQo+ICvCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAo YXNzdi1zZXQhIHByZXYgc2VjdGlvbgo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqAgKGlmIHYgKGFwcGVuZCB2IHZhcmlhYmxlcykKPiArwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqAgdmFyaWFibGVzKSkpKSkpKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgICcoKSBvcHRpb25zKSkpKQoKU2VlbXMg cmF0aGVyIGltcGVyYXRpdmUuICBDYW4gdGhpcyBiZSBhdm9pZGVkLCBlLmcuIHVzaW5nIHZoYXNo ZXM/CkV4Y2VycHQgZnJvbSB0aGUgbWFudWFsOgoKPiAxOC41LjEgUHJvZ3JhbW1pbmcgUGFyYWRp Z20KPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KPgo+IFNjaGVtZSBjb2RlIGluIEd1aXgg aXMgd3JpdHRlbiBpbiBhIHB1cmVseSBmdW5jdGlvbmFsIHN0eWxlLiAgT25lCj4gZXhjZXB0aW9u IGlzIGNvZGUgdGhhdCBpbnZvbHZlcyBpbnB1dC9vdXRwdXQsIGFuZCBwcm9jZWR1cmVzIHRoYXQK PiBpbXBsZW1lbnQgbG93LWxldmVsIGNvbmNlcHRzLCBzdWNoIGFzIHRoZSDigJhtZW1vaXpl4oCZ IHByb2NlZHVyZS4KCkdyZWV0aW5ncywKTWF4aW1lLgo= --=-FC3lODejIUmSFSc5iN/5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYix09BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qvcAP9jQzsvBL63vitrwGMGsvC4Uk5r 2rWViUmdTlrcEH2P1wEA7kgjHUY2A0hVnaFzn3EXknWJ0vI5ahOxe3eSkQDAwgk= =bfzp -----END PGP SIGNATURE----- --=-FC3lODejIUmSFSc5iN/5-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164708082111016 (code B ref 54293); Sat, 12 Mar 2022 10:27:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:27:01 +0000 Received: from localhost ([127.0.0.1]:39156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyxg-0002rZ-Ug for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:27:01 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:40978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSyxf-0002rR-L2 for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:27:00 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by michel.telenet-ops.be with bizsmtp id 5NSx2700U4UoT8k06NSxbC; Sat, 12 Mar 2022 11:26:58 +0100 Message-ID: <4e1d4b59b1ceae89aeb0f66268cec966a4a98476.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:26:57 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-fL4IsuWvZiiNsRiPafBS" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647080818; bh=/eMxEW1z/XMPKntNW23qXRBGWUEbRX2weSyx1hu0x+s=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=m3jJXu4hrQilGSiRCbQvGhapxtUuYjnfllMBEZgDDPPJtWSqB4ZZrY/CCiyFyKy5/ kbMF7rgRFLhnpLYkPJMbakUN370DhCcrt/l+moYAJ8lv3IqgReDPc+w6rOq+/CjwYv HkRIph9C8B89bY54190ETZXlkuVKlM/aX9tIE06nuf+LypwH20LS4IF2bM8VPT4MUp JcEmKNm4wGcb6nKHSqr6Nh5wBsq6F+srbLdnAXxZaSilw35x5QHMmgTvlRFBjZ5OdT Dm+KlZheP5Db9qkFpXUYAFK4/pXFviSXpAVLjxfiUQQnM+eFt0ztiI3HekoY8lCkRv y/K2t3+GB3xLA== X-Spam-Score: 0.3 (/) 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 (-) --=-fL4IsuWvZiiNsRiPafBS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "Specify the encryption to use, either @code{ssl} or @code{= tls}.=C2=A0 Any other > +value reverts to plain SMTP.") This seems easy to go wrong, e.g. what if I accidentally pass a value in uppercase, e.g. "SSL" or "TLS"? I recommend validating this value instead of silently not encrypting. Also, does this need to be a symbol, or a string? Looking at the documentation, I would expect a symbol, but looking at the implementation, it seems to have to be a string. Greetings, Maxime. --=-fL4IsuWvZiiNsRiPafBS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYix1cRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iu2AQDeKjqL6ZcYcRnojboFXsaQXzZ5 szKAYO+6HiUeVPoH6QEA1EYhzmiXrvQMIciplG/gNgHJLijJ0U+/nUtEyD3GKw4= =vY5V -----END PGP SIGNATURE----- --=-fL4IsuWvZiiNsRiPafBS-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164708110711538 (code B ref 54293); Sat, 12 Mar 2022 10:32:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:31:47 +0000 Received: from localhost ([127.0.0.1]:39163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSz2J-000302-Fo for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:31:47 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:35302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSz2I-0002zt-9Z for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:31:46 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by andre.telenet-ops.be with bizsmtp id 5NXj2700E4UoT8k01NXjtJ; Sat, 12 Mar 2022 11:31:44 +0100 Message-ID: From: Maxime Devos Date: Sat, 12 Mar 2022 11:31:43 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-wJxq593M1l8S+fGVsHKG" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647081104; bh=tPpVGuznsh3tZGA9E0w8M6TFxJRPUzkpS4I0oHHznhU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=NRV+5/VLBpaADP2Kxg7oHDBg3GYa25vnAVab413Kc4GHMogRJ9rOElNvbkjRY5qqK Xkh1hFp3qFznoznJYnqdpYJwbzmRvCcBgxDNnvXqRA1uZ2psibfPEh11XyP8iA4cLg ozJJ0Ujsw71s3qPP6KkKND67iEp4WbkHfJxYkOYZuXf34wIyAgXsAkVSreANETJsD2 kKc4f061yQtVF9Xbwl0zlAJZNjo0CepK4qfcr4nq5oADOPBh9f8lgNaFaugcY2in63 MwxqDqj4REEqJ5hMCECqjeqSguV0dpuEgZ3WQXZhYHRDUjWnnPn+1lCBul3T1cR/Fo fGpgbpT38hqLA== X-Spam-Score: 0.3 (/) 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 (-) --=-wJxq593M1l8S+fGVsHKG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0 (commit.gpgSign > +=C2=A0=C2=A0 (git-option-value *unspecified*) Would be nice to validate it's a boolean, and not, say, a string or number. > +=C2=A0=C2=A0 "A boolean to specify whether all commits should be GPG sig= ned.") I'm wondering, should 'gpg.program' be set instead of relying on $PATH? Also, this can be overriden with "-S", so perhaps "A boolean specifying whether to sign commits by default, with OpenPGP." Also, the exact implementation (GPG) of OpenPGP used seems an implementation detail, hence my suggestion GPG->OpenPGP. Greetings, Maxime. --=-wJxq593M1l8S+fGVsHKG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYix2jxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qk6AQCiQ/5aVa6P/wzuGjmmcyHwex0o HTOMX7o+vNhu2qJE9AEAs1C/Hyv/8qbvy74ehZ7XDv0ab6zquPdCiGoPrIEfPgo= =Ypip -----END PGP SIGNATURE----- --=-wJxq593M1l8S+fGVsHKG-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [PATCH v2] home: Add home-git-service-type. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com, 54293@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164708158112245 (code B ref 54293); Sat, 12 Mar 2022 10:40:02 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 10:39:41 +0000 Received: from localhost ([127.0.0.1]:39177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSz9x-0003BR-8S for submit@debbugs.gnu.org; Sat, 12 Mar 2022 05:39:41 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:44152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSz9v-0003BJ-No for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 05:39:40 -0500 Received: from [172.20.10.9] ([188.189.165.207]) by andre.telenet-ops.be with bizsmtp id 5Nfd2700G4UoT8k01Nfezu; Sat, 12 Mar 2022 11:39:38 +0100 Message-ID: <7f91ab84150dca8bf9a4ea24e08bc05ff75fccc4.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 11:39:37 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-qDbXSegL0KYwiJHGW/2n" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647081578; bh=BuqopT1pY/d92RGFr6HsNJUq57iHi7SOH9rGTKuk4pY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=WaSgzEna0/p1r0/vCbNBzQTCDwzsjmpWH1TbVxDcpRxEQRvdoPfQGGZKlbjp/GBLG DPtIcVoH0qLLT1mGDqIbAsMvOiSWGigkfdS9Cz5fCxZdT+zEWY520kyYmi1SNQb/V4 DcSvd03FKHl3D2M48Ut+RDKfmMRAkvWqxEEEfwObMucQSd0ZC57E3/sCvljYDZqwP6 9PKxKI8LDENdI5dJgk8Bc2d1OlVOFh1WO6f+tzysojU5HqgjbOvo0lNBmDFEmqI06b +SiA8e29lmpXi9RCsz9WCfBUCoDw5yTKIHVj1OuBrt0Qh5ZSQlcTqWZcOtxFX2F7gO z3eX9UaxntcNA== X-Spam-Score: 0.3 (/) 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 (-) --=-qDbXSegL0KYwiJHGW/2n Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: > +=C2=A0=C2=A0 "If set, specifies the outgoing SMTP server to > +use (e.g. @code{smtp.example.com} or a raw IP address). How does smtp.example.com specify the SMTP server? As a DNS address? Does that mean I can do (sendemail.smtpServer (make-socket-address AF_INET INADDR_LOOPBACK some-number ...))? 'make-socket-address' is Guile's procedure for making an address, 'AF_INET' indicates IP is used, INADDR_LOOPBACK some-number indicates which IP address ... Also, wouldn't a raw IP address be a 32-bit integer? (or 128-bit in case of IPv6)? And in case of IPv6, is this with or without surrounding [brackets]? Perhaps a reference to the relevant Internet RFC would be useful. Greetings, Maxime. --=-qDbXSegL0KYwiJHGW/2n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYix4aRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7u3cAP9P42sY/WoF0dhC3IanDsOtUCQY b2QfKayL+jlElqWMeAEAvKHa9TGxvAKW+t4UI3V3TMOHcZX5chuSUXWzYwUOFgk= =AsBK -----END PGP SIGNATURE----- --=-qDbXSegL0KYwiJHGW/2n-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 22:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.164712403427287 (code B ref 54293); Sat, 12 Mar 2022 22:28:01 +0000 Received: (at 54293) by debbugs.gnu.org; 12 Mar 2022 22:27:14 +0000 Received: from localhost ([127.0.0.1]:41039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTACf-000762-NX for submit@debbugs.gnu.org; Sat, 12 Mar 2022 17:27:13 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:47914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTACe-00075v-GM for 54293@debbugs.gnu.org; Sat, 12 Mar 2022 17:27:13 -0500 Received: from [172.20.10.5] ([188.189.206.172]) by laurent.telenet-ops.be with bizsmtp id 5aTA270013jiMiL01aTALn; Sat, 12 Mar 2022 23:27:11 +0100 Message-ID: <1c1da14a956cfb91aec74cba0440d43c8e1048a4.camel@telenet.be> From: Maxime Devos Date: Sat, 12 Mar 2022 23:27:09 +0100 In-Reply-To: References: <4802fd5bd14e6d73ca8205edab1e38580db7dd0c.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EGaWHiIU78He1Ai96vTs" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647124031; bh=i6Svldt05gCMngYZPLUcYxHhlF0Iyh9X+uRH/WShFD4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=iwCMEp6ug1WoGXZzr0XaVEHSrq/0/pSdv8GefzvnUtHfsSQopGQa+cnzKE+kY8ZqO 97sXCE8RZXyXTUry6K7VMgK/SJPGL4wfyBnSF34Wy4GwSmHed333p/2G/RpkloHQDc b1z48RJh8jMTGZDX5zRAjDSxs3FRN09KydO6leZ/KJqdOP3MRHzpxsU2A8jm9CSc8e zhXYzYhBD6IWvmx+ilB6HyqGANB8g1VpKeST36hWVBYFWk4/vM30qrZBGR+j0LlzpS o2zNhSKkM+TYjZ66164mDpkcgqyOGLevzopZF3Fzm/vlRKnxyJVXA4m6ge6Rq75M/J p/IFfGyuDz4eQ== X-Spam-Score: -0.7 (/) 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 (-) --=-EGaWHiIU78He1Ai96vTs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 schreef op wo 09-03-2022 om 20:50 [+0800]: [...= ] I didn't notice this mail (and the other) before sending replies on the v2, apologies! They ended up in spam somehow. I'll try to look into them later ... Greetings, Maxime. --=-EGaWHiIU78He1Ai96vTs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYi0ePRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jHkAQCWctGYORuonTx7EJ+xwwjG+Zwg kNQHvG0luFOitVur3AEA2ktXIK4XUiBgcEEPIsMBQP7C6bRl7yQFMsrJo4IOXAc= =xvu1 -----END PGP SIGNATURE----- --=-EGaWHiIU78He1Ai96vTs-- From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: iyzsong@outlook.com, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.16485621971649 (code B ref 54293); Tue, 29 Mar 2022 13:57:02 +0000 Received: (at 54293) by debbugs.gnu.org; 29 Mar 2022 13:56:37 +0000 Received: from localhost ([127.0.0.1]:33295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZCKr-0000QX-CW for submit@debbugs.gnu.org; Tue, 29 Mar 2022 09:56:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZCKo-0000QH-VI for 54293@debbugs.gnu.org; Tue, 29 Mar 2022 09:56:35 -0400 Received: from [2001:470:142:3::e] (port=36132 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZCKi-0000rm-J1; Tue, 29 Mar 2022 09:56:28 -0400 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=OAzKkcwyAaXT4hlACCK170RjW3My9F1nHi+HX1rZ8U0=; b=lYtWG/ocwV6RA7accvFa UmCjgQZDKxHaJGreOYIg5VEXIc/oEu6fWEPNgaPWLHrH8Q8l8RHK7b1MQVtPOAcnRhWNfNP4dZjPz NYPbSCF9citEFov8angKZUVd2nPllxo2sRbAs8mhDa851OQiIf6db1tUfou4ry9ft27HqeXxKEu/B ru6BMRu43CY4KXYf42so2gRGICPjcg7yRWc/D/hW2NHBIbRPnsAdLxv6s6zIJsYIY2A3C4nZaIbOL P0oCtghpee9896YmbHAmUrtmli80KDm52qI/TnZzQnMQbUo18UGFbxxQ5Wgc2RGPAGjPT8yDVrOkw CiPT2oM9cw2Zmw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38694 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZCKi-0003Oc-6G; Tue, 29 Mar 2022 09:56:28 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 29 Mar 2022 15:56:25 +0200 In-Reply-To: (Maxime Devos's message of "Sat, 12 Mar 2022 10:54:15 +0100") Message-ID: <87zgl8x3p2.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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-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 (---) Maxime Devos skribis: > iyzsong@outlook.com schreef op za 12-03-2022 om 10:22 [+0800]: >> + (user.name >> +=C2=A0=C2=A0 (git-option-value *unspecified*)) > > I think *unspecified* is considered an implementation detail. Yes, but it may be useful to be able to distinguish between =E2=80=9Cnot specified=E2=80=9D and =E2=80=9Cfalse=E2=80=9D. To do that you can either use =E2=80=98*unspecified*=E2=80=99 or some other= unique value that you=E2=80=99d compare with =E2=80=98eq?=E2=80=99, say: (define ¬-specified (list 'not 'specified)) (define (specified? value) (not (eq? value ¬-specified))) But really, =E2=80=98*unspecified*=E2=80=99 is okay IMO. Ludo=E2=80=99. From unknown Fri Jun 13 11:09:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 May 2022 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: iyzsong@outlook.com Cc: Maxime Devos , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 54293@debbugs.gnu.org Received: via spool by 54293-submit@debbugs.gnu.org id=B54293.165314083231608 (code B ref 54293); Sat, 21 May 2022 13:48:02 +0000 Received: (at 54293) by debbugs.gnu.org; 21 May 2022 13:47:12 +0000 Received: from localhost ([127.0.0.1]:41034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsPRo-0008DZ-MN for submit@debbugs.gnu.org; Sat, 21 May 2022 09:47:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsPRn-000898-B9 for 54293@debbugs.gnu.org; Sat, 21 May 2022 09:47:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsPRh-0000qa-If; Sat, 21 May 2022 09:47:05 -0400 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=9juZAapurCYEwYKiYLbPie28vFsD8n4QXwwnVpk85HA=; b=aZ8omKhrsz2AjdmuYXuc NUS8E8plfEJio7ankQYU6So5jGvmj5iT6bIL5+mgTcpEIK8eDlOZbfWgNjoRH9P4E91kc1fgxCJws M1xqnuwyVwvGB5VhJM/5kEIq2oB+eYLn2L1Nka5DAU3HjqBaf9NCJUQJzibHFzXTxY2PnzEgvwwe7 aOtwfE1D3sXMWzEn3s1nBZDHJKqB4peU2UiX1z4TWsliLZoyMZpt11q0sgO7yx//PUSlraCqNK4Dk 3AhIzESK1KJWOP7CJLWdY0P7277BNvDXcm2AXlTURTvSzsASFeIjJU7m7VjdwTEdDpK2QXEPNNp4v G0YCCVaeR8Q3ow==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:56456 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsPRh-0007I4-60; Sat, 21 May 2022 09:47:05 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sat, 21 May 2022 15:47:03 +0200 In-Reply-To: (iyzsong@outlook.com's message of "Sat, 12 Mar 2022 10:22:32 +0800") Message-ID: <878rqvuhew.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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-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 (---) Hi =E5=AE=8B=E6=96=87=E6=AD=A6, iyzsong@outlook.com skribis: > * gnu/home/services/git.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. It=E2=80=99s been a while already but I think it=E2=80=99d be a nice additi= on. I think Maxime raised good points while reviewing, in particular regarding naming conventions (lowercase and without dots) and possible grouping (all the =E2=80=98user.=E2=80=99 options might fit in a single r= ecord or similar?). How do you feel about making hopefully final changes so you can push it? Thanks in advance! :-) Ludo=E2=80=99.