Thread (7 messages) 7 messages, 4 authors, 2025-10-01

Re: What is the reason behind not hiding git worktrees from git?

From: Michal Suchánek <hidden>
Date: 2025-09-27 17:55:30

On Sat, Sep 27, 2025 at 09:52:56AM -0700, Junio C Hamano wrote:
"Jakub T. Jankiewicz" [off-list ref] writes:
quoted
Why git work trees are are not automatically ignored by git?
Because there is no reason to ignore them, and ignoring them would
be annoyingly inconvenient.  Worktrees are not special and treated
the same way as an ordinary Git working tree with embedded .git
directory.
Sure, that's another repository.

It does not not show its own .git directory as untracked files although
it is in the main worktree, though.

So why another worktree of the same repository is shown?

That can be seen as inconsistent.

Thanks

Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help