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

[RFC PATCH 0/3] submodules with no working tree shall unset core.worktree

From
Stefan Beller <sbeller@google.com>
Date
Jun 12, 2018, 23:58 UTC
Message-ID
<20180612235825.12271-1-sbeller@google.com>

The first patch teaches checkout/reset (with --recurse-submodules) to unset the core.worktree config when the new state of the superprojects working tree doesn't contain the submodules working tree.

The last patch is teaching "git submodule deinit" to unset the core.worktree setting as well. It turned out this one is tricky, as for that we also have to set it in the counter part, such as "submodule update".

Thanks, Stefan

Stefan Beller (3):
  submodule: unset core.worktree if no working tree is present
  submodule: ensure core.worktree is set after update
  submodule deinit: unset core.worktree
 builtin/submodule--helper.c | 26 ++++++++++++++++++++++++++
 git-submodule.sh            |  5 +++++
 submodule.c                 | 14 ++++++++++++++
 submodule.h                 |  2 ++
 t/lib-submodule-update.sh   |  5 +++--
 t/t7400-submodule-basic.sh  |  5 +++++
 6 files changed, 55 insertions(+), 2 deletions(-)
-- 
2.18.0.rc1.244.gcf134e6275-goog
Next: Stefan Beller
Message 1 of 11 in “submodules with no working tree shall unset core.worktree”
  1. 0/3 submodules with no working tree shall unset core.worktreeStefan Beller, Jun 12, 2018
  2. 1/3 submodule: unset core.worktree if no working tree is presentStefan Beller, Jun 12, 2018
  3. 2/3 submodule: ensure core.worktree is set after updateStefan Beller, Jun 12, 2018
  4. SZEDER GáborJun 16, 2018
  5. 3/3 submodule deinit: unset core.worktreeStefan Beller, Jun 12, 2018
  6. Junio C HamanoJun 13, 2018
  7. Stefan BellerJun 13, 2018
  8. 0/3 submodules with no working tree shall unset core.worktreeStefan Beller, Jun 19, 2018
  9. 1/3 submodule: unset core.worktree if no working tree is presentStefan Beller, Jun 19, 2018
  10. 2/3 submodule: ensure core.worktree is set after updateStefan Beller, Jun 19, 2018
  11. 3/3 submodule deinit: unset core.worktreeStefan Beller, Jun 19, 2018

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.