From nobody Thu Jan 23 13:55:31 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yf2X84JbZz5kyxh for ; Thu, 23 Jan 2025 13:55:36 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yf2X73yxVz3ZVT for ; Thu, 23 Jan 2025 13:55:35 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=J6PzFCR1; spf=pass (mx1.freebsd.org: domain of tamelingdaniel@gmail.com designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=tamelingdaniel@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5d4e2aa7ea9so1856203a12.2 for ; Thu, 23 Jan 2025 05:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737640534; x=1738245334; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=hLtv6WhLL+pYCOz5TyeL61SPz6oLpaB6KgamZGCUN4A=; b=J6PzFCR1U3nJ0/4f09BChZKewJqHdoIn8cNQEmIdDgGsiECOjIwiPwAzFRaEmD1qpz geq2TKiC4Xm0a+fB0sa7KfmRShgmy4EsHekK9agwE0/pZz6WcjKw3ssEm6j3UZPI1O4E 1IZErRBhqyXkM/bzOM5VFRSmHMGRVViKwwOPet06SmWQIwtidNSBeKv/F36Z72OMfvRI rxl1oEvXilnj/00khLOIdsyduwN6qVRb+aLtPPkdX4s69JRR94yOtuH80wVECQsNxmpq enMMJt+aoizLQEA1CfBvkgOfZF+124xg3aD80LV2IQB9iMmr9HHfOk9+0uXFAKik+H8b A1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737640534; x=1738245334; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hLtv6WhLL+pYCOz5TyeL61SPz6oLpaB6KgamZGCUN4A=; b=lgu0SWOSkDyEEDuMwX0o6K5l9AqbtYHzHLNQuf9iVNqSm6jDOf0A7t4SQ8Rfb/2Iay GG8BXZkIUjsf2W1Y+eE79gdjLqh7cy1a/YVsSceFmjTAXsSeL2hGAInuqT20vwM6eaT5 QI4XTvIlCLEUrWSKDtKV+RaqHUfWzNvbXw9CsqBENvVjjgUxuKJdFpiNHP2Q5x5l+Dqa AlMEcizNf8di4vk00fFpeHoiGxFZa04veKRh9hozMvW6HsvY3GqDIzn3+SB238y+VkXn Ld9Rus0r1I/6eKPfhJ+LOoHeR0R4+5EvDJXisk7YHJwbd97R4qviVTT8IINuLZJTU2mX yGhw== X-Gm-Message-State: AOJu0Yy4rQ9o7EPP5du9+5r5cDiH5nY5qtYJG/qwpvob3PBr1MIKOC1G O/Tky/MvELcEV1MnyLKnvTQZXvbN0vSdI/u9QD1C4p1B6aHt3IanTfDJ3w== X-Gm-Gg: ASbGncsG+hlpIrU3ubYFJrlR+tuHJLaIIVWeG1n2iQwA8I6E8QMg7yFtVrlMwqo2tef O55My/ZyHoO4YkHTQ5iKdh4xklGRyO3jZ7YTb2aKVkJdY++Pu9ZC0KPfujZnSzi45bJ5zCJPsb0 3mn63ILKUEdwHAiI9GIquat0hgy924TwJ/edkKKFa3PkJiEFcVQe3vjOKgMC0JEtS1NFz0PyWtT D/+I09oWDOJsgmoKi6s9NOGt6v9ze39s8slVDh5DJg0lsN00qABzHpwsodBTQEQD+lwA0cMVLpV 5f9vhP0= X-Google-Smtp-Source: AGHT+IEy608g0ushWFBnAaAYVYct1ZemIjTNAxGE4DvVekqJ8yaSZDZhlGFt70XwSUw8pIntWWY7vQ== X-Received: by 2002:a17:906:6a17:b0:aa6:800a:1292 with SMTP id a640c23a62f3a-ab38b295b33mr2290678766b.25.1737640533437; Thu, 23 Jan 2025 05:55:33 -0800 (PST) Received: from localhost ([193.141.139.217]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5db73683d47sm10083948a12.41.2025.01.23.05.55.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 05:55:32 -0800 (PST) Date: Thu, 23 Jan 2025 14:55:31 +0100 From: Daniel Tameling To: freebsd-current@freebsd.org Subject: Re: /usr/src and /usr/ports not git directories ? Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: <3782b90b-850f-4435-8b6d-bdb83753daea@app.fastmail.com> <20250123074050.d9e331172e6b2f9dbc8b8dfd@dec.sakura.ne.jp> <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp> <20250123053721.KDVDBu1z@steffen%sdaoden.eu> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250123053721.KDVDBu1z@steffen%sdaoden.eu> X-Spamd-Result: default: False [-2.91 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.91)[-0.911]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RECEIVED_HELO_LOCALHOST(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::534:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4Yf2X73yxVz3ZVT On Thu, Jan 23, 2025 at 06:37:21AM +0100, Steffen Nurpmeso wrote: > > What i mean seems to be that these guys already have the knowledge > how to access the object database without any fancy and featureful > and fat environment, so if FreeBSD would do that then possibly > a simple from scratch checkout -- and nothing else -- would be > possible with only shell tools and a small binary that fetches the > blobs? Maybe even only possible with a very specific tree, you > know? As in a readily prepared recipe (could be compressed and > reside in the .git directory) that can be walked by the shell > script(s) and accessed by the super minimal blob fetcher? > The format is well documented: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects You basically have three types of objects: commits, trees and blobs. Everything has a hash and is compressed with zlib. If you really wanted to, it is not too difficult to write something that does a checkout. But there are already enough git alternatives out there that offer the necessary functionality that have more suitable licenses. -- Best regards, Daniel