Greetings all,
I have been using svn to download sources to /usr/ports. At this time, it is still working, but I would like to try transitioning to git in time, so I do not encounter a surprise when least needed.
I have found the document FreeBSD mini-git Primer, but it could as well be written in Swahili, so I would like a review of my understanding.
First I need to pull the /usr/ports tree. There is a choice between a deep clone and shallow clone. The deep clone "pulls in the entire tree, as well as all the history and branches". So regarding ports, it is latest or quarterly. Since I do follow latest and do not need quarterly, I thought of using the shallow clone:
Since I already have a tree in /usr/ports, can I just use the
The warning regarding the shallow clone ". . . you will lose the commit count in your uname output. This can make it more difficult to determine if your system needs to be updated when a security advisory is issued", does not appear to apply to ports.
Thank you for any help.
Kindest regards,
M
I have been using svn to download sources to /usr/ports. At this time, it is still working, but I would like to try transitioning to git in time, so I do not encounter a surprise when least needed.
I have found the document FreeBSD mini-git Primer, but it could as well be written in Swahili, so I would like a review of my understanding.
First I need to pull the /usr/ports tree. There is a choice between a deep clone and shallow clone. The deep clone "pulls in the entire tree, as well as all the history and branches". So regarding ports, it is latest or quarterly. Since I do follow latest and do not need quarterly, I thought of using the shallow clone:
% git clone -o freebsd -b latest --depth 1 $URL /usr/ports
. Afterwards, the tree is updated by: % git pull --ff-only
.Since I already have a tree in /usr/ports, can I just use the
git pull
command to get the revisions since last update, or do I need to delete the ports tree and start afresh?The warning regarding the shallow clone ". . . you will lose the commit count in your uname output. This can make it more difficult to determine if your system needs to be updated when a security advisory is issued", does not appear to apply to ports.
Thank you for any help.
Kindest regards,
M