X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 15:12:02 +0000 Resent-Message-ID: <handler.54293.B.164666586220788 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54293 <at> debbugs.gnu.org X-Debbugs-Original-To: guix-patches@HIDDEN Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRF0l-0005Ou-Cm for submit <at> 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 <iyzsong@HIDDEN>) id 1nRF0i-0005Ok-Um for submit <at> 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 <iyzsong@HIDDEN>) id 1nRF0i-0008Kv-Qt for guix-patches@HIDDEN; 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 <iyzsong@HIDDEN>) id 1nRF0g-0007Zo-DU for guix-patches@HIDDEN; 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?= <iyzsong@HIDDEN> Date: Mon, 07 Mar 2022 22:51:03 +0800 Message-ID: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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@HIDDEN> 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@HIDDEN; 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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@HIDDEN")))))) --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@HIDDEN" --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 <iyzson= g@HIDDEN> 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 <iyzsong@HIDDEN= org> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(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 :) --=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Subject: bug#54293: Acknowledgement ([WIP] home: Add home-git-service-type) Message-ID: <handler.54293.B.164666586220788.ack <at> debbugs.gnu.org> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> X-Gnu-PR-Message: ack 54293 X-Gnu-PR-Package: guix-patches Reply-To: 54293 <at> debbugs.gnu.org Date: Mon, 07 Mar 2022 15:12:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 54293 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 54293: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54293 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 17:59:02 +0000 Resent-Message-ID: <handler.54293.B54293.164667591630612 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHcx-0007xg-SE for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHcu-0007xV-PE for 54293 <at> 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: <a7fdfcfb23c47227f7d0e19eda6688783980f58e.camel@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 18:58:26 +0100 In-Reply-To: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 18:02:02 +0000 Resent-Message-ID: <handler.54293.B54293.164667606530972 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHfN-00083T-9b for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHfL-00083L-Rg for 54293 <at> 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: <c2e3a4bf52d46503c3ead620254adc1e35f21b0d.camel@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 19:01:01 +0100 In-Reply-To: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 18:03:02 +0000 Resent-Message-ID: <handler.54293.B54293.164667616531124 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHgz-00085v-J5 for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHgy-00085n-4n for 54293 <at> 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@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 19:02:42 +0100 In-Reply-To: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 18:05:01 +0000 Resent-Message-ID: <handler.54293.B54293.164667628931326 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHiy-00089C-Tt for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHix-000893-Pa for 54293 <at> 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@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 19:04:46 +0100 In-Reply-To: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 18:12:02 +0000 Resent-Message-ID: <handler.54293.B54293.164667667931967 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHpH-0008JW-JB for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHpG-0008JP-Cx for 54293 <at> 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@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 19:11:16 +0100 In-Reply-To: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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@HIDDEN")))))) [...] How about providing an option for passwords? E.g., (home-git-configuration (user (git-user-info (name "Foobar") (e-mail "Foobar <foo@HIDDEN>") (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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 07 Mar 2022 18:13:02 +0000 Resent-Message-ID: <handler.54293.B54293.164667677932169 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN 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?= <iyzsong@HIDDEN>, 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRHqt-0008Mn-FL for submit <at> 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 <maximedevos@HIDDEN>) id 1nRHqr-0008Me-3Y for 54293 <at> 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@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 07 Mar 2022 19:12:55 +0100 In-Reply-To: <c2e3a4bf52d46503c3ead620254adc1e35f21b0d.camel@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> <c2e3a4bf52d46503c3ead620254adc1e35f21b0d.camel@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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--
X-Loop: help-debbugs@HIDDEN Subject: [bug#54293] [WIP] home: Add home-git-service-type Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Wed, 09 Mar 2022 12:19:01 +0000 Resent-Message-ID: <handler.54293.B54293.164682832126143 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 54293 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos <maximedevos@HIDDEN> Cc: 54293 <at> debbugs.gnu.org Received: via spool by 54293-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nRvH7-0006nb-H3 for submit <at> 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 <iyzsong@HIDDEN>) id 1nRvH6-0006nL-1Z for 54293 <at> 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?= <iyzsong@HIDDEN> References: <TYCP286MB189799FE00EC37FC1D454CA2A3089@HIDDEN> <a7fdfcfb23c47227f7d0e19eda6688783980f58e.camel@HIDDEN> Date: Wed, 09 Mar 2022 20:18:32 +0800 In-Reply-To: <a7fdfcfb23c47227f7d0e19eda6688783980f58e.camel@HIDDEN> (Maxime Devos's message of "Mon, 07 Mar 2022 18:58:26 +0100") Message-ID: <TYCP286MB189784F08409D048990E3FBBA30A9@HIDDEN> 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@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Maxime Devos <maximedevos@HIDDEN> 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!
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.