From: Yoichi NAKAYAMA via GitGitGadget Date: Thu, 12 Nov 2026 12:03:02 GMT Subject: [PATCH 0/3] submodule: support worktree-specific configuration Message-ID: When extensions.worktreeConfig is enabled, this series stores submodule settings that can differ between worktrees in the worktree config. The changes include: * [1/3] Keep submodule..gitdir relative for linked worktrees. * [2/3] Store submodule settings in the worktree config when extensions.worktreeConfig is enabled. * [3/3] Make git submodule init copy an existing gitdir setting to the current worktree config only when it belongs to that worktree. Yoichi NAKAYAMA (3): submodule: make submodule..gitdir relative for worktrees submodule: store settings in worktree config when enabled submodule init: copy submodule..gitdir to config.worktree Documentation/config/submodule.adoc | 3 +- builtin/submodule--helper.c | 197 +++++++++++++++------ builtin/worktree.c | 23 +++ t/t2405-worktree-submodule.sh | 129 ++++++++++++++ t/t7425-submodule-gitdir-path-extension.sh | 131 ++++++++++++++ 5 files changed, 431 insertions(+), 52 deletions(-) base-commit: fbd2d1e765da4d2931cadc4c62d3ca5d5b590e7e Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2306%2Fyoichi%2Fsubmodule-with-worktree-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2306/yoichi/submodule-with-worktree-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/2306 -- gitgitgadget