git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/3] submodule: support worktree-specific configuration

From
Yoichi NAKAYAMA via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 12, 2026, 12:03 UTC
Message-ID
<pull.2306.git.1794484985.gitgitgadget@gmail.com>

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.<name>.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.<name>.gitdir relative for worktrees
  submodule: store settings in worktree config when enabled
  submodule init: copy submodule.<name>.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
Next: Yoichi NAKAYAMA via GitGitGadget
Message 1 of 6 in “submodule: support worktree-specific configuration”
  1. 0/3 submodule: support worktree-specific configurationYoichi NAKAYAMA via GitGitGadget, Nov 12, 2026
  2. 1/3 submodule: make submodule.<name>.gitdir relative for worktreesYoichi NAKAYAMA via GitGitGadget, Nov 12, 2026
  3. Yoichi NAKAYAMANov 14, 2026
  4. Yoichi NAKAYAMANov 14, 2026
  5. 2/3 submodule: store settings in worktree config when enabledYoichi NAKAYAMA via GitGitGadget, Nov 12, 2026
  6. 3/3 submodule init: copy submodule.<name>.gitdir to config.worktreeYoichi NAKAYAMA via GitGitGadget, Nov 12, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.