Git, gitup and got

The handbook page about packages and ports show how to update port installation scripts (not the ports themselves) using git. Git has many dependencies; there is the option of using gitup. Has anyone tried doing this with got (game of trees), the git replacement promoted by OpenBSD? In its man page and in its comparison with other version control systems I do not see anything equivalent to the '--depth 1' command argument method proposed in the handbook.
 
Gitup or git:tiny is the appropriate and recommended option for most users. But I am one of those who thinks that if the OpenBSD team make their version of something and arrives to FreeBSD, I have to try to use it: pf, libressl, got. Maybe I will try got and it won't convince me, but I have to give it a chance.
 
I was under the impression, from reading got's goals, that got was mostly oriented for OpenBSD development flows and wasn't really geared to be a general use tool like git.

If you just want to pull the latest version of the FreeBSD code I would go with gitup which was created just for that. git:tiny/lite are still git for most part and are more oriented for general usage.
 
I gave 'got' a try.

got clone https://git.FreeBSD.org/ports.git
It takes a very long time to 'resolve deltas'.
got checkout ports.git

du -d0 ports.git ports
1897171 ports.git
1183312 ports

cd ports
got fetch
got update -b origin/main

I deleted it after checking for updates.
 
Back
Top