fetch moved submodules on-demand
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | teach config parsing to read from strbuf.gitignore Makefile cache.h +3 more | +142 | 21 replies | |
| 2/3 | implement fetching of moved submodulesMakefile submodule-config-cache.c submodule-config-cache.h +2 more | +335 | 0 replies | |
| 3/3 | submodule: simplify decision tree whether to or not to fetchsubmodule.c | +27 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Jeff King |
|---|---|
| 1/3 | Commit-Message-by |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC/WIP PATCH 0/3] fetch moved submodules on-demand
Hi,
this is a series I have been working on and off. My plan is that it might be part of a slightly bigger series also implementing on-demand clone of submodules into the .git/modules folder if a submodule is configured like that.
This is needed as preparation for the final goal of automatic checkout/deletion of submodules when they appear/disappear. My plan is to introduce a new .gitmodules variable
submodule.<name>.init
to specify whether a submodule should be initialized (and thus cloned) by default or not. If not configured it will default to off to stay closed to the current behavior. If it proves useful we can maybe change that default later to on.
That way we would get much closer to "clone/fetch and get everything you need to work on a project".
I send this series mainly to inform people what I have been working and to maybe get some early feedback about the approach. Let me know what you think.
Cheers Heiko
Heiko Voigt (3):
teach config parsing to read from strbuf
implement fetching of moved submodules
submodule: simplify decision tree whether to or not to fetch
.gitignore | 1 + Makefile | 2 + cache.h | 1 + config.c | 119 +++++++++++++++++----- submodule-config-cache.c | 96 ++++++++++++++++++ submodule-config-cache.h | 34 +++++++ submodule.c | 242 ++++++++++++++++++++++++++++++++++++-------- t/t1300-repo-config.sh | 4 + t/t5526-fetch-submodules.sh | 31 ++++++ test-config.c | 41 ++++++++ 10 files changed, 502 insertions(+), 69 deletions(-) create mode 100644 submodule-config-cache.c create mode 100644 submodule-config-cache.h create mode 100644 test-config.c
Signature · 1 line
1.8.2.rc0.25.g5062c01