Re: What is the reason behind not hiding git worktrees from git?
From: Michal Suchánek <hidden>
Date: 2025-09-27 17:55:30
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