Re: Getting /usr/src to match specific git hash?

From: Philip Paeps <philip_at_freebsd.org>
Date: Mon, 25 Jan 2021 12:12:50 +0800
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
Received on Mon Jan 25 2021 - 03:12:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC