Re: [PATCH v2 2/2] doc: git-worktree: Add side by side branch checkout example
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 19, 2025, 07:19 UTC
- Message-ID
- <CAPig+cTZ4WpO--jCFPZOK6POFzrux8m7Rhw-p1FkJR+NOD3J=A@mail.gmail.com>
- In-Reply-To
- <aRxgC7TAopqsrZen@kitsune.suse.cz>
On Tue, Nov 18, 2025 at 7:01 AM Michal Suchánek <msuchanek@suse.de> wrote:
Show 10 quoted lines
> On Fri, Oct 24, 2025 at 12:57:42PM -0400, Eric Sunshine wrote: > > Sorry, I mistyped that. What I meant was: > > > > $ git -C myproj.git worktree add ../feature-a > > > > which makes the worktrees siblings of the bare repository. > > and requires the mental gymnastics of adjusting the paths passed to the > command based on -C argument. Does not sound like a good example how to > use the command.
Fair enough. I happen to find the above easy to reason about, but I get your point, as well.
So the remaining actionable bit from the review[*] regards spelling out in prose that hanging worktrees off of a bare repository is an explicitly supported mode of operation.
[*]: https://lore.kernel.org/git/CAPig+cSNesf0UwS4=Bxe-Qn+G9y3YYPyOK+7y3q8QJk+o7jaVg@mail.gmail.com/