Thread (11 messages) 11 messages, 3 authors, 17d ago

Re: [PATCH v7 0/3] includeIf: add "worktree" condition for matching working tree path

From: Junio C Hamano <hidden>
Date: 2026-07-09 20:40:23

Chen Linxuan via B4 Relay [off-list ref]
writes:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help