Re: What is the reason behind not hiding git worktrees from git?
- From
Michal Suchánek <msuchanek@suse.de>
- Date
- Sep 27, 2025, 17:55 UTC
- Message-ID
- <aNglDzeOT5_4ZbdV@kitsune.suse.cz>
- In-Reply-To
- <xmqq4isn96s7.fsf@gitster.g>
On Sat, Sep 27, 2025 at 09:52:56AM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> "Jakub T. Jankiewicz" <jcubic@jcubic.pl> 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