Re: /usr/src and /usr/ports not git directories ?

From: Daniel Tameling <tamelingdaniel_at_gmail.com>
Date: Thu, 23 Jan 2025 13:55:31 UTC
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