1-800-GIT-HELP

Andreas Schwab schwab@linux-m68k.org
Mon Jan 13 16:46:00 GMT 2020


On Jan 13 2020, Jason Merrill wrote:

> On Mon, Jan 13, 2020 at 10:29 AM Nathan Sidwell <nathan@acm.org> wrote:
>
>> If I drop 'master' from the command I get:
>>  >git worktree add ../../error/src
>> Preparing ../../error/src (identifier src1)
>>
>> * what does 'identifier src1' mean, and what did that do?
>>
>
> It created a branch src1 based on your current HEAD for the new worktree to
> track.

Actually, Nathan is using a older version of git where this isn't true,
I think git worktree add used to just create a detached head here.  If
you used a current version, it would have said "(new branch 'src')" (not
'src1'), with the branch named after the basename of the worktree
directory.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the Gcc mailing list