Using git filters to extract or separate FreeBSD components into their own git repos.
This is still a work in progress. Two examples will be provided.
git-filter-repo is a handy port that will rewrite git history, including separating FreeBSD components from the tree. Following is how I separated telnet (telnetd, libtelnet, and telnet) into its own repo.
This resulted in a 1 MB git repo containing only telnet.
git-filter-repo is recommended by the authors of git. git-filter-branch displays a message suggesting that git-filter-repo be used.
As efficient as git-filter-repo is, I discovered it deleted files that should not have been deleted when extracting ftpd into its own repo. The other tool at our disposal is git-filter-branch, which is already packaged with git. Though git warns about git-filter-branch caveats and the possibility of repo corruption, it was the only solution to separate ftpd into its own repo. The steps I used are:
This resulted in a 448KB git repo only containing ftpd.
Hopefully this will be of use to someone. I will expound on the above at a later date as time permits.