Re: What is the reason behind not hiding git worktrees from git?
Show 14 quoted lines
> Le 30 sept. 2025 à 06:41, Michal Suchánek <msuchanek@suse.de> a écrit :
>
> On Sat, Sep 27, 2025 at 09:08:44PM +0000, Jason Cho wrote:
>>> It does not not show its own .git directory as untracked files
>>>
>>> That can be seen as inconsistent.
>>
>> Well, I see your point. Since the .git directory is from a git repo, the directory is ignored by git. Therefore, you want git to also ignore other items derived from the repo, including work trees.
>>
>> However, this is a minor improvement and I suspect your proposed feature may have an unknown impact.
>
> The impact is that the list of worktrees would have to be read to get
> status. As status is not particularly cheap operation in any case I
> would expect the problem to be minor.
I believe status information is used for the shell prompt info, so performance hits there have a cost.