Re: [PATCH v7 0/3] includeIf: add "worktree" condition for matching working tree path
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 9, 2026, 20:40 UTC
- Message-ID
- <xmqqzezzkibu.fsf@gitster.g>
- In-Reply-To
- <20260709-includeif-worktree-v7-0-e87e705e8df6@black-desk.cn>
Chen Linxuan via B4 Relay <devnull+me.black-desk.cn@kernel.org> writes:
Show 6 quoted lines
> The `includeIf` mechanism already supports matching on the `.git` > directory path (`gitdir`) and the currently checked out branch > (`onbranch`). But in multi-worktree setups the `.git` directory of a > linked worktree points into the main repository's `.git/worktrees/` > area, which makes `gitdir` patterns cumbersome when one wants to > include config based on the working tree's checkout path instead.
Thanks.
This seems to break t1305 when merged to 'seen', even though all of them pass standalone. I did not have time to figure out what interactions with which other topic are causing the breakages.