From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EM8AJd79AGRWhgAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 20:49:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kGHzJN79AGRWrgAA9RJhRA (envelope-from ) for ; Thu, 02 Mar 2023 20:49:50 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6D9E03C745 for ; Thu, 2 Mar 2023 20:49:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXovI-0005QN-U6; Thu, 02 Mar 2023 14:49:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXovH-0005Ma-O6 for guix-patches@gnu.org; Thu, 02 Mar 2023 14:49:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXovH-0005a5-Ff for guix-patches@gnu.org; Thu, 02 Mar 2023 14:49:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXovH-0005YJ-CU for guix-patches@gnu.org; Thu, 02 Mar 2023 14:49:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61910] [PATCH] git-download: Download a bare Git repository from SWH. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Mar 2023 19:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 61910@debbugs.gnu.org Received: via spool by 61910-submit@debbugs.gnu.org id=B61910.167778650121197 (code B ref 61910); Thu, 02 Mar 2023 19:49:03 +0000 Received: (at 61910) by debbugs.gnu.org; 2 Mar 2023 19:48:21 +0000 Received: from localhost ([127.0.0.1]:58420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXoua-0005Vm-BQ for submit@debbugs.gnu.org; Thu, 02 Mar 2023 14:48:20 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:41514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXouY-0005UV-6R for 61910@debbugs.gnu.org; Thu, 02 Mar 2023 14:48:18 -0500 Received: by mail-wr1-f53.google.com with SMTP id f11so217753wrv.8 for <61910@debbugs.gnu.org>; Thu, 02 Mar 2023 11:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677786492; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sPM4hKCJz6N9FfvFWxNFvNyLpwk0EfbNxxhdXNJPU2c=; b=FdS0gVal1Cb7g6VzUErw6YxOxkjyyr9LheBfwpUcy725TmzYRx8f95movqYWIso5Pn T83YvFpJoZUZNwOzmwVj4VgIxpVn9ZHeRNb2HiIn1W8xSW7YCCtY+tlwF0BKKuTMXtWd AAXIQPP2yXpqknSRWvVLIPLsZnlqY/HM9liwea8HA/JgRwp77GV3ef2kj02Qbm/h2Vk2 33knxKknhV0mGSre1tUDiRveS+z62H80G72phtbtIZRSenfdBut0Im6kG9oHHCCUYfva ONoVhIn4Nuk0TDHRvciQfzFAk3atimnECDUQflCNtGEfv1iochXau+7toPR4Cr/a2mpu fHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677786492; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sPM4hKCJz6N9FfvFWxNFvNyLpwk0EfbNxxhdXNJPU2c=; b=61VVFqC7vW8UVz1stNsjwShzb8PMAZb7Uy+4FKIrY/j0SV4xHRGC0qy0NVpFenKskU 9ufmsXKPHQxhIWE9U5cQinkHm91OcKjVqZCLBnAa+xoxfX0nlHEK1EMCn/V7G3AoE/1Z xY5mhe3wM7Nbzr7TclPjkEwiWo/5SZqgiPjldoooIiSv2f2jT5Xr5KR1Kzkx3VbV8dBD fs3x3IjrH00rvcdtPynaiIwmSc5CvTud7diKbOHrPQjJWP9Z7G2sn3GgwaYawTmwQLSk Khv3pW/573rlklAXZiVZH0UGRVPiU8MXJRP68MqccRBmue7XgLnSWeUd1Sbau9mjgNRo kdcA== X-Gm-Message-State: AO0yUKUQk91zKq80tkDp2DtWyIUeuD5F+j6tHg5nq9pxj0RNHucOCGoy u59uxbP9zv4HDyqUCOaWv+v15b+7Xxc= X-Google-Smtp-Source: AK7set8T9UL5IShI6kveSN7UZqImrbVN5UGJN+tZXhKnzl2sCajl5TDePkpfYP55j4/edg5EG91flg== X-Received: by 2002:a5d:4cc7:0:b0:2c7:8a6f:5568 with SMTP id c7-20020a5d4cc7000000b002c78a6f5568mr6418378wrt.3.1677786491910; Thu, 02 Mar 2023 11:48:11 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z7-20020a5d4407000000b002c5503a8d21sm210640wrq.70.2023.03.02.11.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 11:48:11 -0800 (PST) From: Simon Tournier References: <20230302091233.28226-1-ludo@gnu.org> <20230302120546.1074630-1-zimon.toutoune@gmail.com> <87cz5r5m7a.fsf_-_@gnu.org> Date: Thu, 02 Mar 2023 18:42:48 +0100 In-Reply-To: (Simon Tournier's message of "Thu, 2 Mar 2023 14:50:56 +0100") Message-ID: <87356nf3s7.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677786590; a=rsa-sha256; cv=none; b=ov+VXK+MhkJTIVFoaHTzbh1wTyevvysHgkKg9ReCq8XLQOjKxWtTABoQeOtd9GgvkNK1+T SGXM4m7Xf3ZYT/ypHdDD/dOOgHfr5nMX4IuDVK/VJYTbdNMhnGnqysBgLu1QdSeI/FV15t Lgyiml67cPTR8js2sajPrIiHM2vX/SPV+6D5TMXupgRYXK5VMjY2pxTLbnPyC7kRlPCjKW gJqryHrIOEbgOVozh7IOT3/FoMrJ75VNGxFLDJJ4Ea+yEQTHNiGNLJv/V5DxzA3dkWQrXW BEL+DNRhnTcQRVD39L026vOofm2wqQCGWtGeM9ozdAm6hy44l9DvHav/1iGJQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FdS0gVal; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677786590; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sPM4hKCJz6N9FfvFWxNFvNyLpwk0EfbNxxhdXNJPU2c=; b=SW0YCZruQDwXZlED6C0gqqDRVlaIChvXlFUuAqbYxiSeEXlhyVKiftRi+Dy0vilTcL+4Aa z5WYaNrF5kTLiMfw2kN84/84bB51+uRNQaQHjuMmIxVkHub66TgXpJXjUC+L3ilgOE0mkH 8wwnf8T/mV+b3slyFvJseC+T60SoSEsG025StW3IfvlUvCw/LtuvQQ6iU8sOSvShBU4twL 7XtSdO6EJXSx/h1yk1GGTUo1jnuSRTKW1W1xuTy7g3m/gA/iNzQRlXimmtLGjB7b4eWCKQ RhJwyHFrZQKH2C3Q8WaQe/GHXVmxnaZGPeiUAy/zXSRkE/2OMBXr3c1oqq1VTw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.10 X-Spam-Score: -2.10 X-Migadu-Queue-Id: 6D9E03C745 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FdS0gVal; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: VuTEgy/6aNiz Hi, Follow up after discussing on #swh-devel. :-) On jeu., 02 mars 2023 at 14:50, Simon Tournier w= rote: > So the question is how to know which files require CRLF and which not? > > From my understanding, this information is provided by: > > $ cat hidapi.guix/.gitattributes > * text=3Dauto > > *.sln text eol=3Dcrlf > *.vcproj text eol=3Dcrlf > > bootstrap text eol=3Dlf > configure.ac text eol=3Dlf Yeah, we could parse this file. It is not that hard but I am not so much interested right now for implementing such. > As zack pointed yesterday, well that what I understood or > misunderstood, it is related to "smudge" filters [1]. No, it is not =E2=80=9Csmudge=E2=80=9D. These attributes are much simpler = than smudge/clean filters =E2=80=93 well they are scary! > Kidding aside, I agree that relying on Guile-Git would mean being less > "fragile". Hum, somehow this asks about the size of the binary seed > for bootstrapping. After some quick look, Guile-Git provides some plumbing and here it is more about porcelain. Well, I do not know how it could be implemented with Guile-Git. > About low-level 'git' command, maybe the same could be achieved > without "git init" + "git add" + "git commit". Well, my gitology is > not enough skilled. :-) Asking on #swh-devel, vlorentz confirmed using something similar. Quoting: =C2=AB I looked at git's normalization-related test cases; but they all use git-add =C2=BB Therefore, I guess that=E2=80=99s probably the best tradeoff for now. Well, I am going to run more tests. Cheers, simon