Getting /usr/src to match specific git hash?

Philip Paeps philip at freebsd.org
Mon Jan 25 04:12:56 UTC 2021


On 2021-01-25 10:57:19 (+0800), Thomas Mueller wrote:
>> It is in the mini primer I wrote, along with how to bisect and other 
>> useful
>> things. This will migrate into the handbook once the doc tree 
>> converts to
>> asciidoc (happening this weekend).
>
>> https://github.com/bsdimp/freebsd-git-docs/blob/main/mini-primer.md
>
> I looked at your mini-primer webpage, but can't find the answer to my 
> question?
>
> How cat one track multiple branches with git without keeping entirely 
> separate trees?

Does something like this do what you want:

git worktree add ../13-stable remotes/freebsd/stable/13

> I see there is a git worktree command, which can keep two or more 
> branches in much diskspace than keeping the trees entirely separately 
> (as I did with subversion and cvs).
>
> In my case, I would want to be able to choose between main and 
> stable-13 when compiling; have given up on releng-12 because of 
> problems with ethernet and wireless drivers.

Worktrees should be able to do what you want in this case.

Philip

-- 
Philip Paeps
Senior Reality Engineer
Alternative Enterprises


More information about the freebsd-current mailing list