From: "Randall S. Becker" <rsbecker@xxxxxxxxxxxxx> Add support for includeIf with a worktree: prefix. This permits conditional includes that are specific to individual worktrees. The set of patches differ slightly from gitdir: as worktrees to not have .git/ directories, so matching repo/ is somewhat problematic - suggestings on dealing with that case are more than welcome. Also added worktree test condition to verify that onbranch: works in a worktree scenario as different from the main repository. Randall S. Becker (3): config.c: add conditional include based on worktree. Documentation/config.txt: add worktree includeIf conditionals. t1305: add tests for includeIf:worktree. Documentation/config.txt | 11 +++++- config.c | 63 ++++++++++++++++++++++++++++++ t/t1305-config-include.sh | 81 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 154 insertions(+), 1 deletion(-) -- 2.32.0