Skip to content

RFC submodules with no working tree shall unset core.worktree

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3submodule: unset core.worktree if no working tree is presentsubmodule.c submodule.h t/lib-submodule-update.sh+18 -10 replies
1/3submodule: unset core.worktree if no working tree is presentsubmodule.c submodule.h t/lib-submodule-update.sh+18 -10 replies
2/3submodule: ensure core.worktree is set after updatebuiltin/submodule--helper.c git-submodule.sh+29 -01 reply
2/3submodule: ensure core.worktree is set after updatebuiltin/submodule--helper.c git-submodule.sh+29 -00 replies
3/3submodule deinit: unset core.worktreebuiltin/submodule--helper.c t/lib-submodule-update.sh t/t7400-submodule-basic.sh+8 -10 replies
3/3submodule deinit: unset core.worktreebuiltin/submodule--helper.c t/lib-submodule-update.sh t/t7400-submodule-basic.sh+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.18.0.rc1.244.gcf134e6275-goog