Thread (16 messages) 16 messages, 5 authors, 2025-11-19

Re: [PATCH v2 2/2] doc: git-worktree: Add side by side branch checkout example

From: Eric Sunshine <hidden>
Date: 2025-11-19 07:19:25

Possibly related (same subject, not in this thread)

On Tue, Nov 18, 2025 at 7:01 AM Michal Suchánek [off-list ref] wrote:
On Fri, Oct 24, 2025 at 12:57:42PM -0400, Eric Sunshine wrote:
quoted
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/ (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help