Re: [PATCH v2 0/3] Ensure unique worktree ids across repositories
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 3, 2024, 00:46 UTC
- Message-ID
- <xmqqed2pioff.fsf@gitster.g>
- In-Reply-To
- <Z02eKA8i51QyXgJ-@ArchLinux>
shejialuo <shejialuo@gmail.com> writes:
Show 6 quoted lines
> But cross-ref operations between worktrees must explicitly specify the > worktree id, so I am wondering whether we should allow the user do > cross-ref operations in the first place: > > 1. main worktree symref points to linked worktree ref. > 2. A linked worktree ref points to another linked worktree ref.
What is a cross-ref operation? A worktree is either the primary working tree for a (non-bare) repository, or something added with "git add worktree" (i.e. whose .git is not the repository but a link file into the real repository). Are you adding another mode where a worktree points at another worktree and not the repository?