Support using submodules with worktrees
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | doc: about submodule support with multiple worktreesDocumentation/ Documentation/ | +25 | 2 replies | |
| 2/10 | submodule--helper: add missing \nbuiltin/ | +1 | 0 replies | |
| 3/10 | submodule add: support multiple worktreesbuiltin/ git-submodule.sh t/ | +61 | 1 reply | |
| 4/10 | submodule init: support multiple worktreesbuiltin/ t/ | +33 | 0 replies | |
| 5/10 | submodule update: add tests for multiple worktreest/ | +11 | 0 replies | |
| 6/10 | submodule sync: support multiple worktreesbuiltin/ t/ | +40 | 0 replies | |
| 7/10 | submodule deinit: support multiple worktreesbuiltin/ t/ | +17 | 0 replies | |
| 8/10 | submodule clone: use repo_config_set()builtin/ config.c config.h +2 more | +36 | 0 replies | |
| 9/10 | submodule clone: propagate extensions.worktreeConfigbuiltin/ | +1 | 0 replies | |
| 10/10 | submodule ensure-core-worktree: write to config.worktreebuiltin/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 00/10] Support using submodules with worktrees
Since this topic has come up twice recently, I'll take this opportunity to gather early comments on this series. It depends nd/config-move-to and at least has one known problem reported Tomasz. But I'll fix that later once nd/config-move-to lands.
For more details, head for 01/10. This basically makes it possible to create secondary worktrees in either supermodules or submodules. The user will be required to turn on extensions.worktreeConfig and this is something I'll need to work on, to make the transition smoother.
Note that while it works, it's not really optimal because worktree clones of the same submodule could be duplicated. But hopefully I could tackle this one step at a time. Make it work first, shake out bugs, then think about sharing repos.
Nguyễn Thái Ngọc Duy (10):
doc: about submodule support with multiple worktrees
submodule--helper: add missing \n
submodule add: support multiple worktrees submodule init: support multiple worktrees submodule update: add tests for multiple worktrees submodule sync: support multiple worktrees submodule deinit: support multiple worktrees submodule clone: use repo_config_set() submodule clone: propagate extensions.worktreeConfig submodule ensure-core-worktree: write to config.worktree
Documentation/git-worktree.txt | 8 ++ Documentation/gitsubmodules.txt | 17 +++++ builtin/submodule--helper.c | 86 ++++++++++++---------- config.c | 10 +++ config.h | 1 + git-submodule.sh | 8 +- repository.c | 21 ++++-- repository.h | 4 + t/t2405-worktree-submodules.sh | 125 ++++++++++++++++++++++++++++++++ 9 files changed, 228 insertions(+), 52 deletions(-) create mode 100755 t/t2405-worktree-submodules.sh
Signature · 1 line
2.20.0.482.g66447595a7