Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2025 14:55:31 +0100
From:      Daniel Tameling <tamelingdaniel@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: /usr/src and /usr/ports not git directories ?
Message-ID:  <Z5JKUxhYER-5mNBU@mail.gmail.com>
In-Reply-To: <20250123053721.KDVDBu1z@steffen%sdaoden.eu>
References:  <Z5AQ1GcwX_MZw69G@www.zefox.net> <CANCZdfoHUsZusqMg_gWN5mB9P3xByGv_GfELi9Dd63CHto1igw@mail.gmail.com> <3782b90b-850f-4435-8b6d-bdb83753daea@app.fastmail.com> <CANCZdfruU=GR5DFWL7RQA4_yjh2-NHOB669wsOSL1DzZ3Fs7%2BQ@mail.gmail.com> <Z5Ehmzd4tp-Xf8Q8@cell.glebi.us> <CAFYkXj=nwjK%2BBnKg%2B0vkyeMu8XaLErCVe8Xr1g3%2BDOaOpeCBXA@mail.gmail.com> <CANCZdfq%2BTAW7v-1H71HSY=pFuO2FDkzAU04q_O-6SjTBdSFgSg@mail.gmail.com> <20250123074050.d9e331172e6b2f9dbc8b8dfd@dec.sakura.ne.jp> <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp> <20250123053721.KDVDBu1z@steffen%sdaoden.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Z5JKUxhYER-5mNBU>