Re: [PATCH v6 1/6] Documentation: add extensions.worktreeConfig details
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 9, 2022, 18:40 UTC
- Message-ID
- <xmqqv8xn7ukc.fsf@gitster.g>
- In-Reply-To
- <CABPp-BHKr3xPStXE6HXUBB0KR=6Y1-CSjDc1DTDdd63uYvK7uQ@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 6 quoted lines
> But testing just now, I think the pseudorefs are already per-worktree. > I just did a merge in a secondary worktree, and then observed from the > primary worktree that a .git/worktrees/<id>/MERGE_HEAD was created, > not a .git/MERGE_HEAD. (Maybe the glossary could just spell out that > these are under $GIT_DIR and _not_ $GIT_COMMON_DIR to avoid potential > confusion?)
I actually think the longer-term direction is to describe that these are always per-worktree, without referring to $GIT_DIR or giving any hints that these may be represented as a file in the filesystem. That would leave the door open for the reftable backend to take them over as well as the normal refs.