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

From: Michal Suchánek <[email-masked]>
Date: Sat, 27 Sep 2025 19:55:27 +0200

On Sat, Sep 27, 2025 at 09:52:56AM -0700, Junio C Hamano wrote:
> "Jakub T. Jankiewicz" <[email-masked]> writes:
> 
> > 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